Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
path: ./gismo/optional/${{ github.event.repository.name }}
#token: ${{ secrets.GH_PAT }}

# Step to install preCICE
- name: Install preCICE
if: runner.os == 'Linux'
Expand All @@ -48,6 +48,7 @@ jobs:
make -j 10
sudo make install
precice_DIR=$(pwd)
export precice_DIR=$(pwd)

# Step to install preCICE
- name: Install preCICE for mac
Expand All @@ -62,7 +63,8 @@ jobs:
make -j 10
sudo make install
precice_DIR=$(pwd)

export precice_DIR=$(pwd)

- name: "Run for ${{ matrix.os }}"
shell: bash
working-directory: ${{ runner.workspace }}
Expand All @@ -71,5 +73,6 @@ jobs:
ctest -S ${{ github.event.repository.name }}/gismo/cmake/ctest_script.cmake \
-D CTEST_BUILD_NAME="${{ github.event.repository.name }}_actions_$GITHUB_RUN_NUMBER" \
-D CTEST_SITE="${{ matrix.os }}_[actions]" \
-D LABELS_FOR_SUBPROJECTS="gsPreCICE-examples" \
-D CMAKE_ARGS="-DCMAKE_BUILD_TYPE=$BUILD_TYPE;-DCMAKE_CXX_STANDARD=11;-DGISMO_WITH_XDEBUG=ON;-DGISMO_BUILD_UNITTESTS=ON;-Dprecice_DIR=$precice_DIR" \
-D GISMO_OPTIONAL="${{ github.event.repository.name }}" -Q
-D GISMO_OPTIONAL="gsElasticity\\;${{ github.event.repository.name }}" -Q
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
*.pvd
*.vtk

# Files from macOS
*.DS_Store
.DS_Store
.DS_Store?

# Log files
*.log
Expand Down
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,11 @@ set(gismo_UNITTESTS ${gismo_UNITTESTS} ${unittests_SRCS}
CACHE INTERNAL "gismo list of unittests")

# Look for CMakeLists.txt in examples
add_subdirectory(examples)
# add example files
if(GISMO_BUILD_EXAMPLES)
add_custom_target(${PROJECT_NAME}-examples)
add_subdirectory(examples)
else()
add_subdirectory(examples EXCLUDE_FROM_ALL)
endif(GISMO_BUILD_EXAMPLES)

7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
|Repository|[gismo/gismo/gsPreCICE](https://github.com/gismo/gsPreCICE)|
|Developer|[Hugo Verhelst](https://github.com/hverhelst), [Jingya Li](https://github.com/Crazy-Rich-Meghan) |
|Dependency|[preCICE v.3](https://github.com/gismo/gsPreCICE)|
|Maintainer|[[email protected]](mailto:[email protected])|

|Maintainer|[Jingya Li](https://github.com/Crazy-Rich-Meghan), [Hugo Verhelst](https://github.com/hverhelst)|

## Start here

Expand Down Expand Up @@ -50,11 +49,13 @@ cd fluid-<other solvers>

**Note**: You need to perform steps 2 and 5 if you want to run the simulation with other libraries.

## Examples
- [Partitioned Heat Conduction](examples/partitioned-heat-conduction/README.md)

## Versions

The latest supported G+Smo version is v24.08.0, and the latest supported preCICE version is v3.1.2.

## References

[1] Benjamin Uekermann, Hans-Joachim Bungartz, Lucia Cheung Yau, Gerasimos Chourdakis and Alexander Rusch. Official preCICE Adapters for Standard Open-Source Solvers. In Proceedings of the _7th GACM Colloquium on Computational Mechanics for Young Scientists from Academia_, 2017.
[1] Benjamin Uekermann, Hans-Joachim Bungartz, Lucia Cheung Yau, Gerasimos Chourdakis and Alexander Rusch. Official preCICE Adapters for Standard Open-Source Solvers. In Proceedings of the _7th GACM Colloquium on Computational Mechanics for Young Scientists from Academia_, 2017.
17 changes: 13 additions & 4 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ aux_cpp_directory(${CMAKE_CURRENT_SOURCE_DIR} FILES)
foreach(file ${FILES})
add_gismo_executable(${file})
get_filename_component(tarname ${file} NAME_WE) # name without extension
set_property(TEST ${tarname} PROPERTY LABELS "${PROJECT_NAME}")
set_target_properties(${tarname} PROPERTIES FOLDER "${PROJECT_NAME}")
if(GISMO_TEST_PRECICE)
set_property(TEST ${tarname} PROPERTY LABELS "${PROJECT_NAME}-examples")
endif()
set_target_properties(${tarname} PROPERTIES FOLDER "${PROJECT_NAME}")
add_dependencies(${PROJECT_NAME}-examples ${tarname})
# install the example executables (optionally)
install(TARGETS ${tarname} DESTINATION "${BIN_INSTALL_DIR}" COMPONENT exe OPTIONAL)
endforeach(file ${FILES})
Expand All @@ -24,8 +27,11 @@ FOREACH(subdir ${SUBDIRS})
foreach(file ${FILES})
add_gismo_executable(${file})
get_filename_component(tarname ${file} NAME_WE) # name without extension
set_property(TEST ${tarname} PROPERTY LABELS "${PROJECT_NAME}")
if(GISMO_TEST_PRECICE)
set_property(TEST ${tarname} PROPERTY LABELS "${PROJECT_NAME}")
endif()
set_target_properties(${tarname} PROPERTIES FOLDER "${PROJECT_NAME}")
add_dependencies(${PROJECT_NAME}-examples ${tarname})
# install the example executables (optionally)
install(TARGETS ${tarname} DESTINATION "${BIN_INSTALL_DIR}" COMPONENT exe OPTIONAL)
endforeach(file ${FILES})
Expand All @@ -40,8 +46,11 @@ FOREACH(subdir ${SUBDIRS})
foreach(file ${FILES})
add_gismo_executable(${file})
get_filename_component(tarname ${file} NAME_WE) # name without extension
set_property(TEST ${tarname} PROPERTY LABELS "${PROJECT_NAME}")
if(GISMO_TEST_PRECICE)
set_property(TEST ${tarname} PROPERTY LABELS "${PROJECT_NAME}")
endif()
set_target_properties(${tarname} PROPERTIES FOLDER "${PROJECT_NAME}")
add_dependencies(${PROJECT_NAME}-examples ${tarname})
# install the example executables (optionally)
install(TARGETS ${tarname} DESTINATION "${BIN_INSTALL_DIR}" COMPONENT exe OPTIONAL)
endforeach(file ${FILES})
Expand Down
Binary file not shown.
Binary file not shown.

This file was deleted.

4 changes: 0 additions & 4 deletions examples/partitioned-heat-conduction-direct/gismo-left/run.sh

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading