Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
660 commits
Select commit Hold shift + click to select a range
b6ccfad
Merge pull request #4543 from bangerth/quadrature-1
anne-glerum Apr 14, 2022
5f949a5
Fixed doubled directory
sac-bsa Apr 14, 2022
2830b79
Merge pull request #4540 from sac-bsa/cookbook_finite_strain
gassmoeller Apr 15, 2022
9f755ff
Merge branch 'main' into steinberger_cookbook
gassmoeller Apr 15, 2022
f98d406
Merge pull request #4544 from bangerth/quadrature-face
gassmoeller Apr 15, 2022
b22642a
Moved the convection box 3d documentation
sac-bsa Apr 18, 2022
c08fe13
Moved Bunge et al cookbook
sac-bsa Apr 18, 2022
9966845
address even more comments
jdannberg Apr 18, 2022
1cef7cc
Merge pull request #4468 from jdannberg/steinberger_cookbook
gassmoeller Apr 19, 2022
1d9c34b
Merge branch 'main' into subduction_cookbook_Case1
gassmoeller Apr 19, 2022
71ba195
Merge pull request #4546 from sac-bsa/bunge_et_al
bangerth Apr 19, 2022
a77f791
Merge pull request #4547 from sac-bsa/convection_box_3d
bangerth Apr 19, 2022
444ef34
Refactor cookbook slightly.
gassmoeller Apr 19, 2022
cd26ef7
Use centralized quadrature formulas.
bangerth Apr 7, 2022
0544efa
Merge pull request #4549 from bangerth/quadrature-2
tjhei Apr 20, 2022
c4ff73b
Moved geomIO cookbook
sac-bsa Apr 20, 2022
5537cd7
Moved Global Melt cookbook
sac-bsa Apr 20, 2022
54bf4a1
Add change log
anne-glerum Apr 21, 2022
a0c2be1
Indent
anne-glerum Apr 21, 2022
ef1bc01
Fix override warnings
anne-glerum Apr 21, 2022
32b5657
Provide quadrature formula for pressure.
bangerth Apr 21, 2022
ecc9f86
Moved Inner Core Convection Cookbook
sac-bsa Apr 21, 2022
fc356f5
Merge pull request #4551 from anne-glerum/fix_override_warnings
bangerth Apr 21, 2022
7873ea1
Merge pull request #4550 from sac-bsa/geomio
bangerth Apr 21, 2022
965bcaf
Use centralized quadrature objects.
bangerth Apr 21, 2022
48f1226
Merge pull request #4126 from anne-glerum/subduction_cookbook_Case1
gassmoeller Apr 21, 2022
f307343
comment on the Adiabatic plugin for Initial temperature
lhy11009 Nov 13, 2021
6530814
Merge pull request #4552 from bangerth/quadrature-3
gassmoeller Apr 25, 2022
90bd677
Merge pull request #4553 from sac-bsa/global_melt
bangerth Apr 25, 2022
c35a54e
Merge pull request #4554 from sac-bsa/inner_core_convection
bangerth Apr 25, 2022
b0314cf
Moved Mid Ocean Ridge Cookbook
sac-bsa Apr 26, 2022
e6f43f4
Moved Morency Doin 2004 cookbook
sac-bsa Apr 26, 2022
fbbde26
Merge pull request #4408 from lhy11009/adiabatic_comments
gassmoeller Apr 26, 2022
b2999be
Fix a number of typos.
bangerth Apr 26, 2022
b53a64e
Updated path for mid_ocean_ridge test
sac-bsa Apr 26, 2022
b683af2
Moved Muparser temperature/lazy syntax cookbook
sac-bsa Apr 26, 2022
f577191
Use appropriate quadrature formula.
bangerth Apr 26, 2022
de18c72
Use C++11-style closing double template angle brackets.
bangerth Apr 26, 2022
4dde872
Adjust tests.
bangerth Apr 26, 2022
70c2cdb
Merge pull request #4402 from gassmoeller/modernize_particle_generati…
bangerth Apr 26, 2022
5d96738
Merge pull request #4558 from sac-bsa/morency_doin
bangerth Apr 26, 2022
cb3029f
Merge pull request #4556 from sac-bsa/mid_ocean_ridge
bangerth Apr 26, 2022
c0287fc
Merge pull request #4560 from bangerth/typos
gassmoeller Apr 26, 2022
d63fa78
Moved platelike boundary cookbook
sac-bsa Apr 27, 2022
1117b6b
Fix incompatibility with deal.II master
gassmoeller Apr 27, 2022
524a78a
Moved initial condition S20RTS cookbook
sac-bsa Apr 27, 2022
c6c7c74
Avoid deprecation warnings
gassmoeller Apr 27, 2022
247b1c2
Moved Polydirism cookbook
sac-bsa Apr 27, 2022
755c0c1
Merge pull request #4566 from gassmoeller/fix_deprecation_warnings
gassmoeller Apr 27, 2022
bc258b9
Merge pull request #4564 from sac-bsa/muparser_temperature_example
bangerth Apr 27, 2022
dfa8399
Merge pull request #4568 from sac-bsa/polydiapir
bangerth Apr 27, 2022
26d0549
Merge pull request #4569 from sac-bsa/platelike_boundary
bangerth Apr 27, 2022
0ea3f35
Merge pull request #4570 from sac-bsa/initial-condition-S20RTS
bangerth Apr 27, 2022
9b570d9
Merge pull request #4561 from bangerth/pressure
gassmoeller Apr 28, 2022
5bad11f
Moved the prescribed velocity cookbook
sac-bsa Apr 28, 2022
8c2db86
Moved prescribed velocity ascii data cookbook
sac-bsa Apr 28, 2022
62dba02
Moved shell 3d postprocess cookbook
sac-bsa Apr 28, 2022
d19f4b2
Moved shell simple 2d cookbook
sac-bsa Apr 28, 2022
4d11c24
Merge pull request #4571 from sac-bsa/prescribed_velocity
gassmoeller Apr 29, 2022
8432b65
Merge pull request #4572 from sac-bsa/prescribed_velocity_ascii_data
gassmoeller Apr 29, 2022
1a27805
Merge pull request #4573 from sac-bsa/shell_3d_postprocess
gassmoeller Apr 29, 2022
21b8f4e
Merge pull request #4562 from bangerth/close-close
gassmoeller Apr 29, 2022
d7549eb
Moved Shell Simple 3d cookbook
sac-bsa Apr 29, 2022
91f7421
Moved sinker with averaging cookbook
sac-bsa Apr 29, 2022
a620d38
Moved visualizing phase diagram cookbook
sac-bsa Apr 29, 2022
041058f
Merge pull request #4574 from sac-bsa/shell_simple_2d
gassmoeller May 2, 2022
31c2c72
Merge pull request #4578 from sac-bsa/visualizing_phase_diagram
gassmoeller May 2, 2022
6410301
Merge pull request #4577 from sac-bsa/sinker-with-averaging
gassmoeller May 2, 2022
1e5bac6
Merge pull request #4576 from sac-bsa/shell_simple_3d
gassmoeller May 2, 2022
43c7193
Moved Kinematically driven subduction cookbook
sac-bsa May 2, 2022
820457e
Moved composition reaction cookbook
sac-bsa May 2, 2022
a2c682d
Moved shell simple 2d smoothing cookbook
sac-bsa May 2, 2022
2b39b56
update continental extension cookbook
naliboff Jul 12, 2021
182733c
address comments
naliboff Jul 16, 2021
7dbb9d0
Incorporate reviewer suggestions
naliboff Jul 16, 2021
8c51ef4
update test
naliboff Jul 16, 2021
594e662
update cookbook boundary temperature
naliboff Jul 16, 2021
fc0b68d
add changelog
naliboff Jul 16, 2021
4f665b6
add authors to cookbook
naliboff Jul 16, 2021
c56be45
fix manual cookbook entries
naliboff Jul 16, 2021
a149fa7
address comments
naliboff May 2, 2022
604118a
Moved onset of convection benchmark documentation
sac-bsa May 2, 2022
78d640b
Ignore generated benchmark .prm.out files
sac-bsa May 2, 2022
9a15f14
Merge pull request #4579 from sac-bsa/kinematically_driven_subduction
gassmoeller May 3, 2022
7982bf6
Merge pull request #4581 from sac-bsa/shell_simple_2d_smoothing
gassmoeller May 3, 2022
846bb94
Merge pull request #4580 from sac-bsa/composition-reaction
gassmoeller May 3, 2022
cb64a12
Moved van Keken cookbook documentation
sac-bsa May 3, 2022
c6ecd85
Fixed path to cookbook
sac-bsa May 3, 2022
e8485c3
update test
naliboff May 3, 2022
deb5ffe
Moved Rayleigh taylor instability
sac-bsa May 4, 2022
b5a7421
Moved sinking block benchmark documentation
sac-bsa May 4, 2022
6582d03
Moved SolCx documentation
sac-bsa May 4, 2022
48e157c
Moved SolKz documentation
sac-bsa May 4, 2022
c3853fc
Moved inclusion benchmark documentation
sac-bsa May 4, 2022
15ea832
Merge pull request #4583 from sac-bsa/van_keken
gassmoeller May 4, 2022
ab03c3d
Merge pull request #4582 from sac-bsa/onset-of-convection
gassmoeller May 4, 2022
1149f1f
Moved Burstedde benchmark documentation
sac-bsa May 5, 2022
98f5c44
Moved slab detachment benchmark documentation
sac-bsa May 5, 2022
8efca8e
Moved hollow sphere benchmark documentation
sac-bsa May 5, 2022
921b710
add noninitial plastic strain property
naliboff Feb 25, 2022
8c3b31f
address comments
naliboff May 2, 2022
4b060be
add test
naliboff May 2, 2022
e2a35fc
update test results
naliboff May 3, 2022
271b69f
incorporate reviewer suggestions
naliboff May 5, 2022
225e210
add change log entry
naliboff May 5, 2022
f389a84
Merge pull request #4584 from sac-bsa/may_4
gassmoeller May 5, 2022
e089b0d
Moved annulus benchmark documentation
sac-bsa May 5, 2022
0d1b8ff
Moved Stokes law benchmark documentation
sac-bsa May 5, 2022
6716aa2
Moved viscosity grooves benchmark documentation
sac-bsa May 5, 2022
ac62cc7
add a first cookbook
jdannberg Aug 12, 2020
85d62f7
restructure
jdannberg Aug 13, 2020
292474a
add more cookbooks
jdannberg Aug 14, 2020
0c14049
address more comments
jdannberg Jul 16, 2021
41ab0e8
address comments
jdannberg May 5, 2022
c15984d
fix typo
jdannberg May 6, 2022
eda9e6b
add tests
jdannberg May 6, 2022
f08eb56
set velocity in computation of initial lithostatsic pressure
jdannberg May 6, 2022
0347a38
address comments
jdannberg May 6, 2022
468143d
Merge pull request #4545 from naliboff/noninitial_plastic_strain_part…
anne-glerum May 6, 2022
bb4db82
Merge pull request #4586 from jdannberg/velocity_for_lithostatic_pres…
gassmoeller May 6, 2022
ccf1bad
Merge pull request #3768 from jdannberg/teaching_materials
naliboff May 6, 2022
e1e1944
Merge pull request #4585 from sac-bsa/may_5
gassmoeller May 6, 2022
7609815
Moved latent heat documentation
sac-bsa May 6, 2022
fe5ddc9
Moved Davies et al. benchmark documentation
sac-bsa May 6, 2022
cb794dc
Moved solitary wave benchmark documentation
sac-bsa May 6, 2022
8d16eed
Moved Tosi et al benchmark documentation
sac-bsa May 6, 2022
79f4716
Moved layered flow benchmark documentation
sac-bsa May 6, 2022
042a06f
Moved crameri cookbook & fixed prm.out generation
sac-bsa May 6, 2022
a877fe6
address comments
naliboff May 6, 2022
c078bc6
Merge pull request #4588 from sac-bsa/may_6
gassmoeller May 9, 2022
6cbe6a1
Moved operator splitting benchmark documentation
sac-bsa May 9, 2022
22a332f
Moved Donea Huerta benchmark documentation
sac-bsa May 9, 2022
afc49bb
Moved advection benchmark documentation
sac-bsa May 9, 2022
18dc1db
Moved Yamauchi Takei 2016 anelasticity benchmark
sac-bsa May 9, 2022
1dbee9d
Moved gravity thin shell benchmark
sac-bsa May 9, 2022
90b6e31
Moved gravity thick shell benchmark
sac-bsa May 9, 2022
4238f58
Moved gravity mantle benchmark
sac-bsa May 9, 2022
b60c444
Moved Buiter et al 2016 benchmark
sac-bsa May 9, 2022
8529d69
Moved headings to match other cookbook documentation
sac-bsa May 9, 2022
0f3d4a8
Merge pull request #4206 from naliboff/update_continental_extension_c…
anne-glerum May 10, 2022
3279188
Merge pull request #4589 from sac-bsa/may_7
gassmoeller May 10, 2022
1af4cc9
Add surface base variables pp
anne-glerum Jun 10, 2021
ff6da01
Reduce code duplication
anne-glerum Jun 10, 2021
41d37eb
Indent
anne-glerum Jun 10, 2021
39126c9
Add tests
anne-glerum Jun 10, 2021
d24f63f
Make surface base output optional
anne-glerum Jun 14, 2021
04a0c68
added surface output for strain rate and max horizontal compressive s…
EstherHeck Jan 11, 2022
7eae7f3
Add fastscape files
Jun 18, 2019
51bcc43
Add correct indexing for aspect->fastscape
Jun 18, 2019
b57c54f
Add repetitions to nx and ny
Jun 19, 2019
3c9518d
Allow code other than fastscape functions to run on multiple processors
Jun 20, 2019
b48c23c
Change cell iterator and get velocity solutions
Jun 20, 2019
9672c5d
Added data tables for velocity components.
Jun 27, 2019
57f134a
Clean up code
Jun 28, 2019
c0e2ad0
Fix send/receive for vector
Jun 28, 2019
49d503a
Add additional refinement for fastscape
Jul 1, 2019
39a2545
Allow 2D use with fastscape.
Jul 2, 2019
2006fc5
Clean up code
Jul 2, 2019
23b24eb
More comments and indent.
Jul 2, 2019
31f5e61
Starting advection
Jul 26, 2019
a335453
Add extra boundary nodes for 3d fastscape and timer.
Jul 29, 2019
88aa2ec
Add extra nodes to 2D models. This messes up the diffusion test.
Aug 1, 2019
aa70f7c
Fix ghost node indexing.
Aug 15, 2019
b2f0e72
Clean up code, output text to log, and only initialize fastscape at f…
Aug 27, 2019
641bd92
Change fastscape seed to a user defined variable.
Aug 30, 2019
266575c
Track VTK file needed to write fastscape visualization into aspect fo…
Aug 30, 2019
40ad97f
Add first pass at periodic boundaries.
Sep 2, 2019
b223273
Clean up indexing.
Sep 2, 2019
fe6e7aa
Update periodic boundaries
Sep 10, 2019
6a7f166
Add restart to fastscape.
Sep 11, 2019
e942448
Clean up code and indent.
Sep 11, 2019
3ffab4f
Fix 2D indexing with ghost nodes.
Oct 7, 2019
a3a4e0f
Edit cmake to find fastscape library through FASTSCAPE_DIR
Oct 10, 2019
5215001
Minor text changes
Oct 10, 2019
64b9eb9
Fix fastscape linking in cmake
Oct 14, 2019
6a03f48
Small changes and add prm file to test fastscape
Oct 14, 2019
c04ec59
Run indent and remove unnecessary includes
Oct 14, 2019
e8acf96
Minor comment on cmakelists
Oct 17, 2019
6c606ea
Add in variable for surface resolution
Oct 17, 2019
060b4e5
Replace all numx/numy with nx/ny.
Oct 17, 2019
0b01f16
Changes to get FastScape to work with non-uniform surface meshes.
Oct 23, 2019
46bb833
Add in more timers.
Oct 24, 2019
a54cf95
Run indent
Oct 25, 2019
4971728
Optimize transferring variables to single processor
Nov 4, 2019
e03c7f6
Add input parameters to use marine component.
Nov 5, 2019
468d063
Change MPI_Send to MPI_Ssend
Nov 8, 2019
2dcdb03
Add first part of stratigraphy
Nov 18, 2019
78d8e15
Add mass flux into model through ghost nodes.
Dec 16, 2019
31377ff
indent
Dec 16, 2019
aa3995b
Minor change to variable name
Mar 16, 2020
efc6328
Default slopep to zero
Mar 16, 2020
b1e9577
Turn on initial seed
Mar 23, 2020
6b3133b
Comment out folder output function
Mar 31, 2020
dfe0599
Comment out folder output
Mar 31, 2020
846bbcf
Fix averaging across nodes in 2d
May 15, 2020
4b8e643
Switch branch
Jul 3, 2020
c38d275
Address some comments, create VTK folder in aspect.
Jul 8, 2020
aac240d
Address some formatting, move where h_old is set.
Jul 8, 2020
8c43729
Address more comments
Jul 8, 2020
0f3b67b
Redo indexing for ghost nodes.
Jul 8, 2020
3c50ea8
Add switch for ghost nodes.
Jul 8, 2020
0223705
Update prm file and run astyle.
Jul 9, 2020
c3e70ff
remove extra line
Jul 9, 2020
37ead66
Comment format in fastscape.h
Jul 9, 2020
d6c7be5
Prm file comment format.
Jul 9, 2020
72b5d26
Fix initial topography advection error and astyle
Jul 10, 2020
87111fa
Fix assert for multiple conditions
Sep 7, 2020
6ad6ed0
Change fastscape base
Sep 7, 2020
5687f59
Fix bad merge and reapply later commits.
Jan 15, 2021
6ab44e6
Round index values before placing them.
Jan 19, 2021
26dd107
Add time intervals for sediment rain.
Jan 20, 2021
66bb59c
add cout statement.
Jan 27, 2021
e74a7da
move stabilization to interface
Feb 1, 2021
3d4ae5a
Remove free surface stabilization parameter
Feb 16, 2021
d49fd8f
Make fastscape visualizations at teh same time as ASPECT.
Feb 18, 2021
5f6da7b
Minor fix to VTK output.
Feb 18, 2021
b7e9664
Update FastScape VTK file to output additional fields.
Feb 19, 2021
4b91398
Adjust ghost nodes so they are fully periodic in ASPECT.
Feb 19, 2021
4f9f3e9
Move ghost nodes to separate function
Feb 19, 2021
022387d
Hopefully fix restarts for VTK output.
Feb 24, 2021
53a1b34
Add cout for writing vtk, and change ConstraintMatrix to AffineConstr…
Mar 3, 2021
c72700d
Replace mesh_refinement/interface.h
Oct 26, 2021
b3ba486
Add orographic controls
Dec 20, 2021
7fa4cd4
Update initial noise
Dec 20, 2021
4c0adcc
Add check that restart files exist
Dec 20, 2021
554eef7
delete function get_free_surface_theta
EstherHeck Jan 14, 2022
42f725c
added pp stress regime from Anne
EstherHeck Jan 21, 2022
f80f324
outcomment update-q-points
EstherHeck Jan 21, 2022
4beed1e
add pp surface_stress_regime
EstherHeck Jan 28, 2022
10e576a
hopefully solved build error
EstherHeck Jan 28, 2022
f5ca976
hopefully THIS solves build error
EstherHeck Jan 28, 2022
ff0f192
finally solved build error for surface stress regime
EstherHeck Feb 4, 2022
64c2460
changed name for surface stress regime pp output
EstherHeck Feb 6, 2022
37c5d39
surface stress regime working
EstherHeck Feb 11, 2022
c81ec52
Revert "delete function get_free_surface_theta"
EstherHeck Feb 16, 2022
34ca9a2
fix free_surface_theta build error: variable was renamed to surface_t…
EstherHeck Feb 21, 2022
4979ded
add Dereks pp volume_statistics
EstherHeck Mar 1, 2022
a545845
add fastscape function fastscape_get_fluxes
EstherHeck Mar 2, 2022
7adeea1
only apply extra erosional baselevel, if ghost node is lower than tha…
EstherHeck Mar 8, 2022
4f225ee
fix assert
EstherHeck Mar 8, 2022
04a0090
Replace mesh_refinement/interface.h
Oct 26, 2021
5993550
Add check that restart files exist
Dec 20, 2021
1a29f98
add Dereks Stratigraphy files
EstherHeck Mar 23, 2022
6eea717
create VTK_strat folder within aspect
EstherHeck Mar 24, 2022
b21b5f3
Set visu step and output folder stratigraphy
anne-glerum Mar 25, 2022
6a87909
undo #2780 in core.cc
EstherHeck Apr 25, 2022
e718f51
add topbottom_periodic and leftright_periodic parameters that Derek s…
EstherHeck May 11, 2022
cab8773
rename new periodic parameter
EstherHeck May 12, 2022
744af00
make new periodicity parameter work with erosional baselevel
EstherHeck May 12, 2022
c84ea97
removed dublicate after rebase
EstherHeck May 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ Pull Request Checklist. Please read and check each box with an X. Delete any par

### Before your first pull request:

* [ ] I have read the guidelines in our [CONTRIBUTING.md](../blob/master/CONTRIBUTING.md) document.
* [ ] I have read the guidelines in our [CONTRIBUTING.md](../blob/main/CONTRIBUTING.md) document.

### For all pull requests:

* [ ] I have followed the [instructions for indenting my code](../blob/master/CONTRIBUTING.md#making-aspect-better).
* [ ] I have followed the [instructions for indenting my code](../blob/main/CONTRIBUTING.md#making-aspect-better).

### For new features/models or changes of existing features:

* [ ] I have tested my new feature locally to ensure it is correct.
* [ ] I have [created a testcase](http://www.math.clemson.edu/~heister/manual.pdf#sec%3Awriting_tests) for the new feature/benchmark in the [tests/](../blob/master/tests/) directory.
* [ ] I have added a changelog entry in the [doc/modules/changes](../blob/master/doc/modules/changes) directory that will inform other users of my change.
* [ ] I have [created a testcase](http://www.math.clemson.edu/~heister/manual.pdf#sec%3Awriting_tests) for the new feature/benchmark in the [tests/](../blob/main/tests/) directory.
* [ ] I have added a changelog entry in the [doc/modules/changes](../blob/main/doc/modules/changes) directory that will inform other users of my change.
8 changes: 5 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: setup
run: |
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ginggs/deal.ii-9.3.0-backports
sudo add-apt-repository ppa:ginggs/deal.ii-9.3.2-backports
sudo apt-get update
sudo apt-get install -yq --no-install-recommends libdeal.ii-dev
- name: compile
Expand All @@ -38,7 +38,7 @@ jobs:
- name: setup
run: |
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ginggs/deal.ii-9.3.0-backports
sudo add-apt-repository ppa:ginggs/deal.ii-9.3.2-backports
sudo apt-get update
sudo apt-get install -yq --no-install-recommends texlive-plain-generic texlive-base texlive-latex-recommended texlive-latex-base texlive-fonts-recommended texlive-bibtex-extra lmodern texlive-latex-extra texlive-science graphviz python3-pip python-setuptools libdeal.ii-dev doxygen
doxygen --version
Expand Down Expand Up @@ -94,13 +94,15 @@ jobs:
-D ASPECT_UNITY_BUILD=ON \
..
ninja
cat detailed.log
./aspect -v
./aspect --test

tests:
#linux build including tests
name: tests
runs-on: [ubuntu-latest]
container: geodynamics/aspect-tester:focal-dealii-9.3-v1
container: geodynamics/aspect-tester:focal-dealii-9.3-v2

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/CTestTestfile.cmake
/Makefile
/aspect
/benchmarks/**/*.prm.out
/benchmarks/**/CMakeCache.txt
/benchmarks/**/CMakeFiles/
/benchmarks/**/Makefile
Expand Down
39 changes: 35 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ LIST(APPEND CMAKE_MODULE_PATH
)

FIND_PACKAGE(deal.II 9.3.0 QUIET
HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
HINTS ${deal.II_DIR} ${DEAL_II_DIR} $ENV{DEAL_II_DIR}
)
IF(NOT ${deal.II_FOUND})
MESSAGE(FATAL_ERROR "\n*** Could not find a suitably recent version of deal.II. ***\n"
Expand Down Expand Up @@ -287,11 +287,13 @@ IF(EXISTS ${CMAKE_SOURCE_DIR}/unit_tests/CMakeLists.txt)
ADD_DEPENDENCIES(test run_unit_tests)
ENDIF()

IF(EXISTS ${CMAKE_SOURCE_DIR}/tests/CMakeLists.txt
AND ${ASPECT_NEED_TEST_CONFIGURE})

IF(EXISTS ${CMAKE_SOURCE_DIR}/tests/CMakeLists.txt)
# Hook up the tests:
FILE(APPEND ${CMAKE_BINARY_DIR}/CTestTestfile.cmake "SUBDIRS(tests)\n")
ENDIF()

IF(EXISTS ${CMAKE_SOURCE_DIR}/tests/CMakeLists.txt
AND ${ASPECT_NEED_TEST_CONFIGURE})

FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tests)

Expand Down Expand Up @@ -477,16 +479,45 @@ IF(NOT ASPECT_ADDITIONAL_CXX_FLAGS STREQUAL "")
MESSAGE(STATUS " DEAL_II_CXX_FLAGS_RELEASE: ${DEAL_II_CXX_FLAGS_RELEASE}")
ENDIF()

# Check if a fastscape library is available, if so link it with aspect.
# If the library is not found, then remove fastscape .cc and .h from list
# so aspect can still compile.
# TODO: likely need to switch ENV and normal positions so it checks ENV second.
FIND_LIBRARY(FASTSCAPE NAMES fastscapelib_fortran PATHS $ENV{FASTSCAPE_DIR} ${FASTSCAPE_DIR} PATH_SUFFIXES lib NO_DEFAULT_PATH)
IF(FASTSCAPE)
MESSAGE(STATUS "FastScape found at ${FASTSCAPE}")
ELSE()
FIND_FILE(FASTSCAPE_SRC fastscape.cc HINTS "${CMAKE_SOURCE_DIR}/source/mesh_deformation")
LIST(REMOVE_ITEM TARGET_SRC ${FASTSCAPE_SRC})
MESSAGE(STATUS "FastScape library not found")
ENDIF()

ADD_EXECUTABLE(${TARGET} ${TARGET_SRC})
DEAL_II_SETUP_TARGET(${TARGET})

# Library needs to be linked after executable is added, but if fastscape isn't found
# then the .cc files need to be removed before.
# TODO: find a way to do this where they don't have to be separated.
IF(FASTSCAPE)
TARGET_LINK_LIBRARIES(${TARGET} ${FASTSCAPE})
ENDIF()

# deal.II does not define NDEBUG, but the world builder relies on it to disable
# its asserts in release mode. Set it manually for anything but debug mode.
# Note: If deal.II decides in the future to define this, this can be removed.
IF (NOT CMAKE_BUILD_TYPE MATCHES Debug)
ADD_DEFINITIONS("-DNDEBUG")
ENDIF()

# find zlib if it is installed in a non-standard location
SET(ZLIB_DIR "" CACHE PATH "An optional hint to a ZLIB installation")
IF("${ZLIB_DIR}" STREQUAL "")
SET(ZLIB_DIR "$ENV{ZLIB_DIR}" CACHE PATH "An optional hint to a ZLIB installation" FORCE)
ENDIF()
FIND_PACKAGE(ZLIB)
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(${TARGET} ${ZLIB_LIBRARY})

FIND_PACKAGE(PerpleX QUIET
HINTS ./contrib/perplex/install/ ../ ../../ ${PERPLEX_DIR} $ENV{PERPLEX_DIR})
IF(${PerpleX_FOUND})
Expand Down
17 changes: 17 additions & 0 deletions Folder_output.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
subroutine Folder_output (k, istep, foldername)


use FastScapeContext
implicit none

integer, intent(in) :: k, istep
character(len=k), intent(in) :: foldername


ffoldername = foldername
kk = k
iistep = istep


return
end subroutine Folder_output
2 changes: 1 addition & 1 deletion Jenkinsfile.cig
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pipeline {
stage ("Check Permissions") {
when {
allOf {
not {branch 'master'}
changeRequest()
not {changeRequest authorEmail: "rene.gassmoeller@mailbox.org"}
not {changeRequest authorEmail: "timo.heister@gmail.com"}
not {changeRequest authorEmail: "bangerth@colostate.edu"}
Expand Down
122 changes: 122 additions & 0 deletions Named_VTK.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
subroutine Fastscape_Named_VTK (f, vex, istep, foldername, k)

! subroutine to create a simple VTK file for plotting inside of aspect folder.
! To use, add this file into the fastscape src directory, and then add
! the line ${FASTSCAPELIB_SRC_DIR}/Named_VTK.f90 to the appropriate place
! in cmakelists.txt

use FastScapeContext
implicit none

integer, intent(in) :: k, istep !,atime
double precision, intent(in) :: vex
double precision, intent(in), dimension(*) :: f
character(len=k), intent(in) :: foldername
character*7 cstep

integer nheader,nfooter,npart1,npart2, ftime
character header*1024,footer*1024,part1*1024,part2*1024,nxc*6,nyc*6,nnc*12
integer i,j
character*10 fwtime
double precision dx,dy


dx = xl/(nx - 1)
dy = yl/(ny - 1)

! Finding the fastscape time incremented by dt. dt may be a double
! that is converted to an integer, but we don't care about then
! exact time that much.
! ftime = (atime + step*dt)

!Writing the fastscape time to a string, up to 1 billion years. (add another zero if needed eventually)
! write (fwtime,'(i10)') ftime
! if (ftime.lt.10) fwtime(1:9)='000000000'
! if (ftime.lt.100) fwtime(1:8)='00000000'
! if (ftime.lt.1000) fwtime(1:7)='0000000'
! if (ftime.lt.10000) fwtime(1:6)='000000'
! if (ftime.lt.100000) fwtime(1:5)='00000'
! if (ftime.lt.1000000) fwtime(1:4)='0000'
! if (ftime.lt.10000000) fwtime(1:3)='000'
! if (ftime.lt.100000000) fwtime(1:2)='00'
! if (ftime.lt.1000000000) fwtime(1:1)='0'

write (cstep,'(i7)') istep
if (istep.lt.10) cstep(1:6)='000000'
if (istep.lt.100) cstep(1:5)='00000'
if (istep.lt.1000) cstep(1:4)='0000'
if (istep.lt.10000) cstep(1:3)='000'
if (istep.lt.100000) cstep(1:2)='00'
if (istep.lt.1000000) cstep(1:1)='0'



!Use the output folder of aspect and create a vtk folder inside of it.
!#ifdef ON_WINDOWS
! call system ('if not exist "'//trim(foldername)//'/VTK" mkdir '//trim(foldername)//'/VTK')
!#else
call system ('mkdir -p '//trim(foldername)//'/VTK')
!call system ('pwd')
!#endif

write (nxc,'(i6)') nx
write (nyc,'(i6)') ny
write (nnc,'(i12)') nn

header(1:1024)=''
header='# vtk DataFile Version 3.0'//char(10)//'FastScape'//char(10) &
//'BINARY'//char(10)//'DATASET STRUCTURED_GRID'//char(10) &
//'DIMENSIONS '//nxc//' '//nyc//' 1'//char(10)//'POINTS' &
//nnc//' float'//char(10)
nheader=len_trim(header)
footer(1:1024)=''
footer='POINT_DATA'//nnc//char(10)
nfooter=len_trim(footer)
part1(1:1024)=''
part1='SCALARS '
npart1=len_trim(part1)+1
part2(1:1024)=''
part2=' float 1'//char(10)//'LOOKUP_TABLE default'//char(10)
npart2=len_trim(part2)

open(unit=77,file=(foldername//'/VTK/Topography'//cstep//'.vtk'),status='unknown', &
form='unformatted',access='direct', recl=nheader+3*4*nn+nfooter+(npart1+10+npart2+4*nn) &
+(npart1+5+npart2+4*nn)+(npart1+8+npart2+4*nn)+(npart1+12+npart2+4*nn)+(npart1+13+npart2+4*nn) &
+(npart1+13+npart2+4*nn)+(npart1+9+npart2+4*nn),convert='big_endian')
write (77,rec=1) &
header(1:nheader), &
((sngl(dx*(i-1)),sngl(dy*(j-1)),sngl(h(i+(j-1)*nx)*abs(vex)),i=1,nx),j=1,ny), &
footer(1:nfooter), &
part1(1:npart1)//'topography'//part2(1:npart2),sngl(h(1:nn)), &
part1(1:npart1)//'HHHHH'//part2(1:npart2),sngl(f(1:nn)), &
part1(1:npart1)//'basement'//part2(1:npart2),sngl(b(1:nn)), &
part1(1:npart1)//'erosion_rate'//part2(1:npart2),sngl(erate(1:nn)), &
part1(1:npart1)//'total_erosion'//part2(1:npart2),sngl(etot(1:nn)), &
part1(1:npart1)//'drainage_area'//part2(1:npart2),sngl(a(1:nn)) , &
part1(1:npart1)//'catchment'//part2(1:npart2),sngl(catch(1:nn))
close(77)

if (vex.lt.0.d0) then
open(unit=77,file=(foldername//'/VTK/Basement'//cstep//'.vtk'),status='unknown',form='unformatted',access='direct', &
recl=nheader+3*4*nn+nfooter+(npart1+1+npart2+4*nn) &
+(npart1+5+npart2+4*nn),convert='big_endian')
write (77,rec=1) &
header(1:nheader), &
((sngl(dx*(i-1)),sngl(dy*(j-1)),sngl(b(i+(j-1)*nx)*abs(vex)),i=1,nx),j=1,ny), &
footer(1:nfooter), &
part1(1:npart1)//'B'//part2(1:npart2),sngl(b(1:nn)), &
part1(1:npart1)//'HHHHH'//part2(1:npart2),sngl(f(1:nn))
close(77)
open(unit=77,file=(foldername//'/VTK/SeaLevel'//cstep//'.vtk'),status='unknown',form='unformatted',access='direct', &
recl=nheader+3*4*nn+nfooter+(npart1+2+npart2+4*nn),convert='big_endian')
write (77,rec=1) &
header(1:nheader), &
((sngl(dx*(i-1)),sngl(dy*(j-1)),sngl(sealevel*abs(vex)),i=1,nx),j=1,ny), &
footer(1:nfooter), &
part1(1:npart1)//'SL'//part2(1:npart2),(sngl(sealevel),i=1,nn)
close(77)
endif


return
end subroutine Fastscape_Named_VTK
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ASPECT - Advanced Solver for Problems in Earth's ConvecTion
===========================================================
[![License GPL2+:](https://img.shields.io/badge/License-GPL%202%2B-red)](https://github.com/geodynamics/aspect/blob/master/LICENSE)
[![License GPL2+:](https://img.shields.io/badge/License-GPL%202%2B-red)](https://github.com/geodynamics/aspect/blob/main/LICENSE)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5131909.svg)](https://doi.org/10.5281/zenodo.5131909)
[![pdf manual](https://img.shields.io/badge/get-PDF-green.svg)](https://doi.org/10.6084/m9.figshare.4865333)

Expand Down
Loading