Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add t8code baroclinic instability test case #199

Draft
wants to merge 57 commits into
base: main
Choose a base branch
from

Conversation

benegee
Copy link
Collaborator

@benegee benegee commented Jul 24, 2024

Proof of concept for MESSy coupling.

benegee and others added 30 commits February 22, 2024 17:49
add parameter index and only get averaged of the variable at position index
proof of concept for creating data vectors in libelixirs which can be
filled later by external applications
required in this PR, subject to change
demonstrates source terms via database
@benegee benegee marked this pull request as draft July 24, 2024 21:33
@benegee
Copy link
Collaborator Author

benegee commented Jul 25, 2024

How to

  • Build and install t8code
    • must be version 2.0.0 or main
    • for Fortran interface:
      • start with main
      • git merge origin/fortran-interface
      • git merge origin/fortran-build
      • in api/Makefile.am rename t8_fortran_interface.f90 to t8_mo_fortran_interface.f90
      • in t8_fortran_specific.mk replace $(FC_MODEXT) with mod
      • in t8_fortran_specific.mk delete the whole if T8_WITH_MODDIR ... endif block
      • configure (with --enable-mpi, --enable-fortran), build and install
  • Build and install libtrixi
    • needs this branch: bg/baroclinic-instability
    • e.g. cmake -DCMAKE_INSTALL_PREFIX=~/install/libtrixi-baro -DCMAKE_BUILD_TYPE=DEBUG -DT8CODE_PREFIX=~/install/t8code_fortran ..
  • Build julia project
    • cd libtrixi-julia-baro
    • e.g. ./libtrixi-baro/bin/libtrixi-init-julia --t8code-library ../t8code_fortran/lib/libt8.so ../libtrixi-baro
    • JULIA_DEPOT_PATH=./julia-depot julia --project=.
    • Package manager ]
    • pkg> dev --local Trixi
    • leave Julia, cd dev/Trixi, git switch feature-t8code-cubed-sphere-setup, cd -
    • JULIA_DEPOT_PATH=./julia-depot julia --project=.
    • Package manager ]
    • update
    • maybe downgrade XML2_jll: add [email protected]
    • precompile
  • Run test case
    • cd libtrixi-baro
    • LIBTRIXI_DEBUG=all ./bin/trixi_controller_baroclinic_c ../libtrixi-julia-baro ./share/libtrixi/LibTrixi.jl/examples/libelixir_t8code3d_euler_baroclinic_instability.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants