CarpetX: a Cactus driver for the Einstein Toolkit based on AMReX
README
Cactus Code Thorn CarpetX
Author(s)    : Erik Schnetter 
Maintainer(s): Erik Schnetter 
Licence      : LGPL
--------------------------------------------------------------------------

1. Purpose

Provide a Cactus driver based on AMReX; see
.

From the AMReX web site:

A Massively Block-Structured AMR Software Framework and Applications.



2. 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



3. 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()