-
Notifications
You must be signed in to change notification settings - Fork 75
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 #347 from polyfem/pref-test
Pref test
- Loading branch information
Showing
6 changed files
with
80 additions
and
5 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
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,31 @@ | ||
# data (https://github.com/polyfem/polyfem-data) | ||
# License: MIT | ||
|
||
if(TARGET polyfem::pref) | ||
return() | ||
endif() | ||
|
||
include(ExternalProject) | ||
|
||
set(POLYFEM_PREF_DIR "${PROJECT_SOURCE_DIR}/pref-data/" CACHE PATH "Where should polyfem download and look for pref data?") | ||
|
||
|
||
ExternalProject_Add( | ||
polyfem_pref_download | ||
PREFIX ${FETCHCONTENT_BASE_DIR}/polyfem-test-pref | ||
SOURCE_DIR ${POLYFEM_PREF_DIR} | ||
GIT_REPOSITORY https://github.com/polyfem/Decoupling-Simulation-Accuracy-from-Mesh-Quality | ||
GIT_TAG 4129da2b2c453c70f07ab37a0a717b90c801276e | ||
CONFIGURE_COMMAND "" | ||
BUILD_COMMAND "" | ||
INSTALL_COMMAND "" | ||
LOG_DOWNLOAD ON | ||
) | ||
|
||
# Create a dummy target for convenience | ||
add_library(polyfem_pref INTERFACE) | ||
add_library(polyfem::pref ALIAS polyfem_pref) | ||
|
||
add_dependencies(polyfem_pref polyfem_pref_download) | ||
|
||
target_compile_definitions(polyfem_pref INTERFACE POLYFEM_PREF_DIR=\"${POLYFEM_PREF_DIR}\") |
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
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,28 @@ | ||
bridge/large_angle_strip_0.json | ||
bridge/large_angle_strip_1.json | ||
bridge/large_angle_strip_2.json | ||
bridge/large_angle_strip_3.json | ||
bridge/large_angle_strip_4.json | ||
bridge/large_angle_strip_5.json | ||
bridge/large_angle_strip_6.json | ||
bridge/large_angle_strip_7.json | ||
bridge/large_angle_strip_8.json | ||
bridge/large_angle_strip_8_no.json | ||
# | ||
main/conditioning_44000_bad.json | ||
main/conditioning_44000_good.json | ||
main/frog.json | ||
# | ||
neo-hookean-2d/large_angle_strip_0.json | ||
neo-hookean-2d/large_angle_strip_1.json | ||
neo-hookean-2d/large_angle_strip_3.json | ||
neo-hookean-2d/large_angle_strip_5.json | ||
neo-hookean-2d/large_angle_strip_7.json | ||
neo-hookean-2d/large_angle_strip_7_no.json | ||
# | ||
neo-hookean-3d/large_angle_0.json | ||
neo-hookean-3d/large_angle_1.json | ||
#neo-hookean-3d/large_angle_3.json | ||
#neo-hookean-3d/large_angle_5.json | ||
#neo-hookean-3d/large_angle_7.json | ||
#neo-hookean-3d/large_angle_7_no.json |
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