Cactus Code Thorn CarpetX Author(s) : Erik Schnetter schnetter@gmail.com Maintainer(s): Erik Schnetter schnetter@gmail.com Licence : LGPL
- Purpose
Provide a Cactus driver based on AMReX; see https://amrex-codes.github.io.
From the AMReX web site:
A Massively Block-Structured AMR Software Framework and Applications.
- Building AMReX library
How to build the AMReX library so that this thorn can use it:
cd $HOME/src/amrex mkdir -p build cd build rm -rf * cmake -DCMAKE_C_COMPILER=/opt/local/bin/gcc -DCMAKE_CXX_COMPILER=/opt/local/bin/g++ -DCMAKE_Fortran_COMPILER=/opt/local/bin/gfortran -DENABLE_OMP=ON -DCMAKE_CXX_FLAGS=‘-march=native’ -DCMAKE_Fortran_FLAGS=‘-march=native’ -DCMAKE_INSTALL_PREFIX=$HOME/amrex .. make -j12 make -j12 install
- Visualizing output
This uses yt:
%matplotlib inline import yt ds = yt.load(“wavetoy/phi000010”) ds.field_list (error, phi, phi1, phi2) = ds.field_list slc = yt.SlicePlot(ds, “z”, error, center=[0.0, 0.0, 0.0]) slc.set_log(error, False); slc.show()