-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from dengwirda/dev
Dev
- Loading branch information
Showing
76 changed files
with
5,585 additions
and
3,016 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cmake_minimum_required (VERSION 3.9.4) | ||
project (JIGSAW) | ||
|
||
add_subdirectory ("${PROJECT_SOURCE_DIR}/src") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,9 @@ | |
* | ||
-------------------------------------------------------- | ||
* | ||
* Last updated: 31 July, 2018 | ||
* Last updated: 10 April, 2019 | ||
* | ||
* Copyright 2013-2018 | ||
* Copyright 2013-2019 | ||
* Darren Engwirda | ||
* [email protected] | ||
* https://github.com/dengwirda/ | ||
|
@@ -107,6 +107,19 @@ | |
|
||
real_t _geom_eta2 ; | ||
|
||
/* | ||
-------------------------------------------------------- | ||
* INIT_NEAR - {default = 1.E-8} relative "zip" tol. | ||
* applied when processing initial conditions. In cases | ||
* where "sharp-feature" detection is active, nodes in | ||
* the initial set are zipped to their nearest feature | ||
* node if the separation length is less than NEAR*SCAL | ||
* where SCAL is the max. bounding-box dimension. | ||
-------------------------------------------------------- | ||
*/ | ||
|
||
real_t _init_near ; | ||
|
||
/* | ||
-------------------------------------------------------- | ||
* HFUN_SCAL - {default = 'relative'} scaling type for | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
set (CMAKE_CXX_STANDARD 11) | ||
set (CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) | ||
|
||
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) | ||
set (INSTALL_LOCAL TRUE) | ||
message ("installing locally") | ||
else (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) | ||
message ("installing to ${CMAKE_INSTALL_PREFIX}") | ||
endif (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) | ||
|
||
add_executable (jigsaw-cmd jigsaw.cpp) | ||
target_compile_definitions (jigsaw-cmd PRIVATE __cmd_jigsaw) | ||
set_target_properties (jigsaw-cmd PROPERTIES OUTPUT_NAME jigsaw) | ||
if (DEFINED INSTALL_LOCAL) | ||
install (TARGETS jigsaw-cmd DESTINATION "${PROJECT_SOURCE_DIR}/bin") | ||
else () | ||
install (TARGETS jigsaw-cmd DESTINATION bin) | ||
endif () | ||
|
||
add_executable (tripod-cmd jigsaw.cpp) | ||
target_compile_definitions (tripod-cmd PRIVATE __cmd_tripod) | ||
set_target_properties (tripod-cmd PROPERTIES OUTPUT_NAME tripod) | ||
if (DEFINED INSTALL_LOCAL) | ||
install (TARGETS tripod-cmd DESTINATION "${PROJECT_SOURCE_DIR}/bin") | ||
else () | ||
install (TARGETS tripod-cmd DESTINATION bin) | ||
endif () | ||
|
||
add_library (jigsaw-lib SHARED jigsaw.cpp) | ||
target_compile_definitions (jigsaw-lib PRIVATE __lib_jigsaw) | ||
set_target_properties (jigsaw-lib PROPERTIES OUTPUT_NAME jigsaw) | ||
if (DEFINED INSTALL_LOCAL) | ||
install (TARGETS jigsaw-lib DESTINATION "${PROJECT_SOURCE_DIR}/lib") | ||
else () | ||
install (DIRECTORY inc/ DESTINATION include FILES_MATCHING PATTERN "*.h") | ||
install (TARGETS jigsaw-lib DESTINATION lib) | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,9 @@ | |
* | ||
-------------------------------------------------------- | ||
* | ||
* Last updated: 14 September, 2017 | ||
* Last updated: 18 April, 2019 | ||
* | ||
* Copyright 2013-2017 | ||
* Copyright 2013-2019 | ||
* Darren Engwirda | ||
* [email protected] | ||
* https://github.com/dengwirda/ | ||
|
@@ -111,7 +111,7 @@ | |
if (_geom._kind == | ||
jmsh_kind::ellipsoid_mesh) | ||
{ | ||
/*--------------------------------- euclidean-mesh-3d */ | ||
/*--------------------------------- ellipsoid-mesh-3d */ | ||
_scal = (real_type) +0. ; | ||
_scal += | ||
_geom._ellipsoid_mesh_3d._bmax[0] - | ||
|
@@ -232,6 +232,32 @@ | |
} | ||
|
||
} | ||
} | ||
else | ||
if (_hfun._kind == | ||
jmsh_kind::ellipsoid_mesh) | ||
{ | ||
/*--------------------------------- ellipsoid-mesh-3d */ | ||
for (auto _node = _hfun. | ||
_ellipsoid_mesh_3d._mesh._set1.head(); | ||
_node != _hfun. | ||
_ellipsoid_mesh_3d._mesh._set1.tend(); | ||
++_node ) | ||
{ | ||
if (_node->mark() < 0) continue; | ||
|
||
_node->hval() = | ||
_scal * _node->hval(); | ||
|
||
_node->hval() = | ||
std::min(_node->hval(), | ||
_scal *_jcfg._hfun_hmax) ; | ||
|
||
_node->hval() = | ||
std::max(_node->hval(), | ||
_scal *_jcfg._hfun_hmin) ; | ||
} | ||
|
||
} | ||
else | ||
if (_hfun._kind == | ||
|
Oops, something went wrong.