thorn_name
stringclasses
227 values
url
stringclasses
26 values
configuration
stringclasses
137 values
interface
stringclasses
225 values
param
stringclasses
220 values
schedule
stringclasses
223 values
src_filename
stringlengths
4
83
src_code
stringlengths
0
579k
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/Legendre.cc
#include <stdlib.h> #include "myassert.h" namespace decomp_Legendre { double LegendreP(int n, double x) { double PP[101]; double X[101]; myassert(n>-1); myassert(n<101); X[0] = 1; for (int i=1; i < 101; i++) { X[i] = X[i-1] * x; } PP[0] = 1.; PP[1] = x; PP[2] = -0.5 + 1.5*X[2]; PP[3] = -...
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/testmatrix.cc
#include <iostream> #include <complex> #include "matrix.hh" using namespace std; using namespace decomp_matrix_class; int main(void) { double data[] = {0,1,2,1.0/3.0,1.0/5.0,1.0/11.0,72,45,96}; double data2[] = {1,2,3,4,5, 6,7,8,9,10, 11,12,13,14,7}; matrix <double> m(3,3,...
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/Makefile
OBJS1=decomp.o matrix.o sYlm.o driver.o Legendre.o Chebyshev.o OBJS2=matrix.o testmatrix.o PROGS=decomp testmatrix GSL_DIR=~/local/gsl all: ${PROGS} decomp: ${OBJS1} g++ ${OBJS1} -g -o $@ -L ${GSL_DIR}/lib/ -lgsl -lgslcblas -lm testmatrix: ${OBJS2} g++ ${OBJS2} -g -o $@ -L ${GSL_DIR}/lib/ -lgsl -lgslcblas -lm %...
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/Legendre.hh
#ifndef DECOMP_LEGENDRE_HH #define DECOMP_LEGENDRE_HH namespace decomp_Legendre { double LegendreP(int n, double x); int LegendreRoots(int n, double *root); } #endif
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/Chebyshev.cc
#include "myassert.h" #include <stdlib.h> namespace decomp_Chebyshev { double ChebyshevU (int n, double x) { double UU[101]; double X[101]; myassert (n > -1); myassert (n < 31); X[0] = 1; for (int i = 1; i < 101; i++) { X[i] = X[i - 1] * x; } UU[0] = 1.0; UU[1]...
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/decomp.cc
#include <iostream> #include <complex> #include <cmath> #include "myassert.h" #include "matrix.hh" #include "sYlm.hh" #include "TestLeastSquare.h" #ifdef USE_LEGENDRE # include "Legendre.hh" #else # include "Chebyshev.hh" #endif #include "decomp.hh" #define Max(a_,b_) ((a_)>(b_)? (a_):(b_)) #define Min(a_,b_) ((a_...
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/sYlm.cc
#include <complex> #include <cmath> #include "myassert.h" #include "sYlm.hh" #define Max(a_,b_) ((a_)>(b_)? (a_):(b_)) #define Min(a_,b_) ((a_)<(b_)? (a_):(b_)) #define FourPi 12.566370614359172953850573533118 #define ABS(x_) ((x_)>0 ? (x_) : (-(x_))) namespace decomp_sYlm { using namespace std; static long double ...
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/matrix.hh
#ifndef MATRIX_HH_ #define MATRIX_HH_ #include "myassert.h" #define MATRIX_ELEMENT_ROUND_OFF_LIMIT 1.0e-12 #define MATRIX_DECOMP_USE_GSL_MATRIX_INVERTER 1 namespace decomp_matrix_class { template <class T> class row { private: int size; T *data; public: int length(); row(void); row(int sz); ...
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/TestLeastSquare.h
#ifndef TEST_LEAST_SQUARE_H #define TEST_LEAST_SQUARE_H // comment out the following line to test Legendre polynomial #undef USE_LEGENDRE #endif
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/matrix.cc
#include <iostream> #include <complex> #include <cmath> #include "myassert.h" #include "matrix.hh" #if MATRIX_DECOMP_USE_GSL_MATRIX_INVERTER # include <gsl/gsl_linalg.h> # include <gsl/gsl_permutation.h> # include <gsl/gsl_vector.h> # include <gsl/gsl_matrix.h> #endif namespace decomp_matrix_class { using namespa...
PITTNullCode/SphericalHarmonicDecomp
https://bitbucket.org/einsteintoolkit/pittnullcode.git
# Configuration definitions for thorn SphericalHarmonicDecomp REQUIRES HDF5 GSL
# Interface definition for thorn SphericalHarmonicDecomp # $Header:$ implements: SphericalHarmonicDecomp inherits: CCTK_INT FUNCTION sYlm_DecomposeField(\ CCTK_POINTER_TO_CONST IN cctkGH,\ CCTK_POINTER_TO_CONST IN name,\ CCTK_INT IN re_gindx,\ CCTK_INT IN im...
# Parameter definitions for thorn SphericalHarmonicDecomp # $Header:$ SHARES: IO USES CCTK_STRING out_dir AS io_out_dir PRIVATE: CCTK_STRING out_dir "output directory" STEERABLE=ALWAYS { "^$" :: "Empty stting -> use IO::out_dir" ".+" :: "directory name" } "" CCTK_INT max_spin "maximum absolute spin of fields" ...
# Schedule definitions for thorn SphericalHarmonicDecomp # $Header:$ if (do_test) { SCHEDULE SphericalHarmonicDecomp_Test AT CCTK_INITIAL { LANG: C OPTIONS: GLOBAL } "test" } if (extract_spacetime_metric_every) { SCHEDULE SphericalHarmonicDecomp_DumpMetric AT CCTK_POSTSTEP { LANG: C OPTIONS:...
TestLeastSquare/sYlm.hh
#ifndef DECOMP_SYLM_HH #define DECOMP_SYLM_HH #include <complex> #include <cmath> namespace decomp_sYlm { using namespace std; double sPlm(int s, int l, int m, double theta); double sPlm_mu(int s, int l, int m, double mu); complex <double> sYlm(int s, int l, int m, double theta, double phi); complex <double> ...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
Chebyshev.hh
#define CHEBYSHEV_NMAX 100 namespace recon_Chebyshev { /* This code will be pretty innefficient. Especially if we only want < 10 modes. But we only call it once so ... Note nmax is the maximum value of n you are requesting, so th arrays need to hold nmax+1 elements. */ void ChebyshevU(int nmax, double x, double U[...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
make.configuration.defn
# make.configuration.defn file for thorn SphericalHarmonicRecon # Define this thorn's utilities ALL_UTILS += ascii_output fftwfilter setmeta findlast printtime readmeta
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
Recon.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "util_Table.h" #include "util_ErrorCodes.h" #include "Chebyshev.hh" #include <stdio.h> #include <assert.h> #include <iostream> #include <math.h> #include <complex> #include <mpi.h> #define H5_USE_16_API 1 #include <hdf5.h> #include <h...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
make.configuration.deps
# make.configuration.deps file for thorn SphericalHarmonicRecon # Cactus SphericalHarmonicRecon utilities are built SPHERICALHARMONICRECON_BUILD_DIR = $(BUILD_DIR)/SphericalHarmonicRecon SPHERICALHARMONICRECON_SRC_DIR = $(PACKAGE_DIR)/PITTNullCode/SphericalHarmonicRecon/src/util SPHERICALHARMONICRECON_CFLAGS = -...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
Chebyshev.cc
#include <assert.h> #include <stdlib.h> #include "Chebyshev.hh" namespace recon_Chebyshev { /* This code will be pretty innefficient. Especially if we only want < 10 modes. But we only call it once so ... Note nmax is the maximum value of n you are requesting, so th arrays need to hold nmax+1 elements. */ void C...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
make.code.defn
# Main make.code.defn file for thorn SphericalHarmonicRecon # $Header:$ # Source files in this directory SRCS = Chebyshev.cc Recon.cc # Subdirectories containing source files SUBDIRS = #CXXFLAGS += -Wall
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
util/dampfilter.c
#define H5_USE_16_API 1 #include <hdf5.h> #include <hdf5_hl.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include "util.h" // check return code of HDF5 call and print a warning in case of an error #define HDF5_ERROR(fn_call) HDF5_ERROR_FUNC((fn_call), #fn_call, \ ...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
util/util.c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include "util.h" void util_verify_hdf5_file(const char *infile) { assert(infile); const size_t ilen = strlen(infile); if(strcmp(infile+ilen-3, ".h5")) { fprintf(stderr, "Incorrect file extension for input file: %s\n...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
util/findlast.c
#define H5_USE_16_API 1 #include <hdf5.h> #include <hdf5_hl.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include "util.h" #define pow2(x_) ((x_)*(x_)) // check return code of HDF5 call and print a warning in case of an error #define HDF5_ERROR(fn_call) HDF5_ERROR_FUNC((fn_call), #f...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
util/README
The files in this directory can be used to modify the Cauchy extraction data. In particular, filter the data via an FFT and calculate a smooth time derivative. These programs require the HDF5 and FFTW libraries installed somewhere. They are compiled using the gamke CONFIGNAME-utils mechanism. To filter the Cauchy dat...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
util/readmeta.c
#define H5_USE_16_API 1 #include <hdf5.h> #include <hdf5_hl.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include "util.h" // check return code of HDF5 call and print a warning in case of an error #define HDF5_ERROR(fn_call) HDF5_ERROR_FUNC((fn_call), #fn_call, \ ...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
util/ascii_output.c
#define H5_USE_16_API 1 #include <hdf5.h> #include <hdf5_hl.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include "util.h" // check return code of HDF5 call and print a warning in case of an error #define HDF5_ERROR(fn_call) HDF5_ERROR_FUNC((fn_call), #fn_call, \ ...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
util/util.h
#ifndef UTIL_H #define UTIL_H extern void util_verify_hdf5_file(const char *infile); extern int util_gen_out_hdf5_filename(const char *infile, char **outfile, const char *mod); extern int util_fexist(const char *name); #endif
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
util/setmeta.c
#define H5_USE_16_API 1 #include <hdf5.h> #include <hdf5_hl.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include "util.h" // check return code of HDF5 call and print a warning in case of an error #define HDF5_ERROR(fn_call) HDF5_ERROR_FUNC((fn_call), #fn_call, \ ...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
util/fftwfilter.c
#define H5_USE_16_API 1 #include <hdf5.h> #include <hdf5_hl.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include <string.h> #include <fftw3.h> #include "util.h" #define pow2(x_) ((x_)*(x_)) #define pow3(x_) ((x_)*(x_)*(x_)) // check return code of HDF5 call and print a warning in c...
PITTNullCode/SphericalHarmonicRecon
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5 FFTW3 MPI
# Interface definition for thorn SphericalHarmonicRecon # $Header:$ implements:SphericalHarmonicRecon inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ CCT...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: CCTK_INT order "order used in time interpolation / differentiation" { 2 :: "two or four" 4 :: "two or four" } 4 CCTK_REAL r_extract "the radius of the worldtube" { (0:* :: "positive" } 50.0 STRING metric_data_filename "filename fo...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
util/printtime.c
#define H5_USE_16_API 1 #include <hdf5.h> #include <hdf5_hl.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include "util.h" #define pow2(x_) ((x_)*(x_)) // check return code of HDF5 call and print a warning in case of an error #define HDF5_ERROR(fn_call) HDF5_ERROR_FUNC((fn_call), #f...
PITTNullCode/SphericalHarmonicReconGen
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5
# Interface definition for thorn SphericalHarmonicReconGen # $Header:$ implements: SphericalHarmonicReconGen inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ ...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: KEYWORD format "Boundary data file format" STEERABLE=RECOVER { ASCII :: "standard ASCII format: lm-modes and spheres are stored in a 2d array (gnuplot style) for a given timestep" DAT :: "optimized ASCII format: all variable...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
read.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "util_Table.h" #include "util_ErrorCodes.h" #include <stdio.h> #include <assert.h> #include "vars.hh" using namespace std; namespace { // returns true when the interpolation uses the last valid iteration in the file bool load_m...
PITTNullCode/SphericalHarmonicReconGen
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5
# Interface definition for thorn SphericalHarmonicReconGen # $Header:$ implements: SphericalHarmonicReconGen inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ ...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: KEYWORD format "Boundary data file format" STEERABLE=RECOVER { ASCII :: "standard ASCII format: lm-modes and spheres are stored in a 2d array (gnuplot style) for a given timestep" DAT :: "optimized ASCII format: all variable...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
get.cc
#include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "vars.hh" extern "C" { /* Cactus Aliased Functions */ CCTK_INT SphericalHarmonicReconGeneric_GetParameters (CCTK_INT *lmax, CCTK_REAL *r...
PITTNullCode/SphericalHarmonicReconGen
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5
# Interface definition for thorn SphericalHarmonicReconGen # $Header:$ implements: SphericalHarmonicReconGen inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ ...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: KEYWORD format "Boundary data file format" STEERABLE=RECOVER { ASCII :: "standard ASCII format: lm-modes and spheres are stored in a 2d array (gnuplot style) for a given timestep" DAT :: "optimized ASCII format: all variable...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
sph_database.hh
#include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include <cstring> #include <string> #include <vector> #include <deque> #include <assert.h> #include <iostream> #include <fstream> #include <algorithm> #include <typeinfo> #include "mpi.h" #def...
PITTNullCode/SphericalHarmonicReconGen
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5
# Interface definition for thorn SphericalHarmonicReconGen # $Header:$ implements: SphericalHarmonicReconGen inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ ...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: KEYWORD format "Boundary data file format" STEERABLE=RECOVER { ASCII :: "standard ASCII format: lm-modes and spheres are stored in a 2d array (gnuplot style) for a given timestep" DAT :: "optimized ASCII format: all variable...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
make.code.defn
# Main make.code.defn file for thorn SphericalHarmonicReconASCII # $Header:$ # Source files in this directory SRCS = get.cc read.cc startup.cc sph_database.cc vars.cc # Subdirectories containing source files SUBDIRS = #CXXFLAGS += -Wall
PITTNullCode/SphericalHarmonicReconGen
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5
# Interface definition for thorn SphericalHarmonicReconGen # $Header:$ implements: SphericalHarmonicReconGen inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ ...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: KEYWORD format "Boundary data file format" STEERABLE=RECOVER { ASCII :: "standard ASCII format: lm-modes and spheres are stored in a 2d array (gnuplot style) for a given timestep" DAT :: "optimized ASCII format: all variable...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
vars.hh
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "util_Table.h" #include "util_ErrorCodes.h" #include <stdio.h> #include <assert.h> #include <iostream> #include <math.h> #include <complex> #ifndef _VARS__HHHH_ #define _VARS__HHHH_ #include "sph_database.hh" #define NUM_METRIC_COMP...
PITTNullCode/SphericalHarmonicReconGen
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5
# Interface definition for thorn SphericalHarmonicReconGen # $Header:$ implements: SphericalHarmonicReconGen inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ ...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: KEYWORD format "Boundary data file format" STEERABLE=RECOVER { ASCII :: "standard ASCII format: lm-modes and spheres are stored in a 2d array (gnuplot style) for a given timestep" DAT :: "optimized ASCII format: all variable...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
startup.cc
#include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "mpi.h" #include "vars.hh" using namespace std; extern "C" void SphericalHarmonicReconGeneric_Startup(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; as...
PITTNullCode/SphericalHarmonicReconGen
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5
# Interface definition for thorn SphericalHarmonicReconGen # $Header:$ implements: SphericalHarmonicReconGen inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ ...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: KEYWORD format "Boundary data file format" STEERABLE=RECOVER { ASCII :: "standard ASCII format: lm-modes and spheres are stored in a 2d array (gnuplot style) for a given timestep" DAT :: "optimized ASCII format: all variable...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
vars.cc
#include "vars.hh" namespace SHR { /* state info vars */ int initialized = 0; int read_data = 0; int time_derivative_in_file = 0; int starting_iteration = 0; int iteration_in_file = 0; CCTK_REAL initial_time_in_file = 0; vector<SPH_database*> db(NUM_METRIC_COMPONENTS*3, NULL); vector...
PITTNullCode/SphericalHarmonicReconGen
https://bitbucket.org/einsteintoolkit/pittnullcode.git
REQUIRES HDF5
# Interface definition for thorn SphericalHarmonicReconGen # $Header:$ implements: SphericalHarmonicReconGen inherits: CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld CCTK_INT \ FUNCTION GetCurrentExtractionCoefs(\ CCTK_INT IN l,\ ...
# Parameter definitions for thorn SphericalHarmonicRecon # $Header:$ private: KEYWORD format "Boundary data file format" STEERABLE=RECOVER { ASCII :: "standard ASCII format: lm-modes and spheres are stored in a 2d array (gnuplot style) for a given timestep" DAT :: "optimized ASCII format: all variable...
# Schedule definitions for thorn SphericalHarmonicRecon # $Header:$ # You should schedule any routine that will use the metric # coefficients in GROUP MetricReconstruction. Any routine that # calls GetCurrentExtractionCoefs should be scheduled in this group SCHEDULE GROUP MetricReconstruction IN \ SphericalHa...
sph_database.cc
#include "sph_database.hh" #include <cassert> namespace SHR { using namespace std; // check return code of HDF5 call and print a warning in case of an error #define HDF5_ERROR(fn_call) HDF5_CALL(__LINE__, __FILE__, CCTK_THORNSTRING, \ fn_call, #fn_call) static int HDF5_CALL(co...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
apply_tau_floor__enforce_limits_on_primitives_and_recompute_conservs.C
static void eigenvalues_3by3_real_sym_matrix(CCTK_REAL & lam1, CCTK_REAL & lam2, CCTK_REAL & lam3, CCTK_REAL M11, CCTK_REAL M12, CCTK_REAL M13, CCTK_REAL M22, CCTK_REAL M23, CCTK_REAL M33); static inline int apply_tau_floor(const int index,const CCTK_REAL tau_atm,const CCTK...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
symmetry__set_gzs_staggered_gfs.C
#include "cctk.h" #include "cctk_Parameters.h" #include <cstdio> #include <cstdlib> #include "IllinoisGRMHD_headers.h" void IllinoisGRMHD_set_symmetry_gzs_staggered(const cGH *cctkGH, const int *cctk_lsh,CCTK_REAL *X,CCTK_REAL *Y,CCTK_REAL *Z, CCTK_REAL *gridfunc, CCTK_REA...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
harm_utoprim_2d.c
/*********************************************************************************** Copyright 2006 Charles F. Gammie, Jonathan C. McKinney, Scott C. Noble, Gabor Toth, and Luca Del Zanna HARM version 1.0 (released May 1, 2006) This file is part of HARM. HARM is...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
eigen.C
// // This subroutine calcualtes the eigenvalues of a real, symmetric 3x3 // matrix M={{M11,M12,M13},{M12,M22,M23},{M13,M23,M33}} based on the // algorithm described in // http://en.wikipedia.org/wiki/Eigenvalue_algorithm#Eigenvalues_of_3.C3.973_matrices // which simply solve the cubic equation Det( M - lamnda I)=0 ana...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
outer_boundaries.C
/******************************************************* * Outer boundaries are handled as follows: * (-1) Update RHS quantities, leave RHS quantities zero on all outer ghostzones (including outer AMR refinement, processor, and outer boundaries) * ( 0) Let MoL update all evolution variables * ( 1) Apply outer bound...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
font_fix_gamma_law.C
/*----------------------------------------------------------------------------- * * Apply "Font Fix", of Font et al., ONLY when the primitives (con2prim) solver * fails. Note that this version is OPTIMIZED for gamma=2 polytrope EOS only. * Application of this fix GUARANTEES (on an analytic level, at least) ...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
A_i_rhs_no_gauge_terms.C
/* Compute the part of A_i_rhs that excludes the gauge terms. I.e., we set * A_i_rhs = \partial_t A_i = \psi^{6} (v^z B^x - v^x B^z) here. */ static void A_i_rhs_no_gauge_terms(const int A_dirn,const cGH *cctkGH,const int *cctk_lsh,const int *cctk_nghostzones,gf_and_gz_struct *out_prims_r,gf_and_gz_struct *out_pr...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
compute_tau_rhs_extrinsic_curvature_terms_and_TUPmunu.C
static void compute_tau_rhs_extrinsic_curvature_terms_and_TUPmunu (const cGH *cctkGH,const int *cctk_lsh,const int *cctk_nghostzones,CCTK_REAL *dX,CCTK_REAL **metric,gf_and_gz_struct *prims, CCTK_REAL **TUPmunu,eos_struct &eos, CCTK_REAL *gupxy,CCTK_REAL *gupxz,CCTK_REAL *gupyz, CCTK_REAL *kxx,CCTK_REAL *kxy,CCTK_RE...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
compute_B_and_Bstagger_from_A.C
#include "cctk.h" #include <cstdio> #include <cstdlib> #include <cmath> #include <sys/time.h> #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "IllinoisGRMHD_headers.h" #define LOOP_DEFINE_SIMPLE \ _Pragma("omp parallel for") \ for(int k=0;k<cctk_lsh[2];k++) ...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
loop_defines_reconstruction.h
#ifndef LOOP_DEFINES_RECONSTRUCTION_H_ #define LOOP_DEFINES_RECONSTRUCTION_H_ #define LOOP_DEFINE(gz_shift_lo,gz_shift_hi, ext,flux_dirn, ijkgz_lo_hi,gz_lo,gz_hi) \ for(int rr=1;rr<=3;rr++) { \ ijkgz_lo_hi[rr][0]= gz_lo[rr]; \ ...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
reconstruct_set_of_prims_PPM.C
/***************************************** * PPM Reconstruction Interface. * Zachariah B. Etienne (2013) * * This version of PPM implements the standard * Colella & Woodward PPM, though modified as in GRHydro * to have 3 ghostzones instead of 4. *****************************************/ #define MINUS2 0 #def...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
driver_evaluate_MHD_rhs.C
/********************************************* * Evaluate RHS of GRMHD & induction equations * (vector potential prescription), using the * generalized Lorenz gauge condition for the * EM gauge. * * Based originally on the Illinois GRMHD code, * written by Matt Duez, Yuk Tung Liu, and Branson * Stephens (ori...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
make.code.defn
# Main make.code.defn file for thorn IllinoisGRMHD # Source files in this directory SRCS = InitSymBound.C MoL_registration.C \ \ postpostinitial__set_symmetries__copy_timelevels.C \ \ convert_ADM_to_BSSN__enforce_detgtij_eq_1__and_compute_gtupij.C \ \ driver_evaluate_MHD_rhs.C \ compute_B_...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
harm_primitives_lowlevel.C
static inline int harm_primitives_gammalaw_lowlevel(const int index,const int i,const int j,const int k,CCTK_REAL *X,CCTK_REAL *Y,CCTK_REAL *Z, CCTK_REAL *METRIC,CCTK_REAL *METRIC_PHYS,CCTK_REAL *METRIC_LAP_PSI4, CCT...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
inlined_functions.C
static inline CCTK_REAL fasterpow_ppm_reconstruct(CCTK_REAL inputvar,CCTK_REAL inputpow) { if(inputpow==2.0) return SQR(inputvar); return pow(inputvar,inputpow); } static inline void find_cp_cm(CCTK_REAL &cplus,CCTK_REAL &cminus,CCTK_REAL v02,CCTK_REAL u0, CCTK_REAL vi,CCTK_REAL ONE_OVER_LAP...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
InitSymBound.C
/* Set the symmetries for the IllinoisGRMHD variables */ #include "cctk.h" #include <cstdio> #include <cstdlib> #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "Symmetry.h" #include "IllinoisGRMHD_headers.h" extern "C" void IllinoisGRMHD_InitSymBound(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; D...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
postpostinitial__set_symmetries__copy_timelevels.C
//------------------------------------------------- // Stuff to run right after initial data is set up //------------------------------------------------- #include "cctk.h" #include <cstdio> #include <cstdlib> #include "cctk_Arguments.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" #include "Symmetry.h" #i...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
harm_u2p_util.c
/* ------------------------------------------------------------------------------- Copyright 2005 Scott C. Noble, Charles F. Gammie, Jonathan C. McKinney, and Luca Del Zanna This file is part of PVS-GRMHD. PVS-GRMHD is free software; you can redistribute it and/or modify it under the terms of the GNU G...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
Lorenz_psi6phi_rhs__add_gauge_terms_to_A_i_rhs.C
static inline CCTK_REAL avg(CCTK_REAL f[PLUS2+1][PLUS2+1][PLUS2+1],int imin,int imax, int jmin,int jmax, int kmin,int kmax); static void Lorenz_psi6phi_rhs__add_gauge_terms_to_A_i_rhs(const cGH *cctkGH,const int *cctk_lsh,const int *cctk_nghostzones,CCTK_REAL *dX,CCTK_REAL **in_vars,CCTK_REAL *psi6phi, ...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
mhdflux.C
//----------------------------------------------------------------------------- // Compute the flux for advecting rho_star, tau (Font's energy variable), // and S_i . //----------------------------------------------------------------------------- static inline void mhdflux(int i,int j,int k,const int flux_dirn,CCTK_R...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
IllinoisGRMHD_headers.h
// To safeguard against double-including this header file: #ifndef ILLINOISGRMHD_HEADERS_H_ #define ILLINOISGRMHD_HEADERS_H_ #define MIN(a,b) ( ((a) < (b)) ? (a) : (b) ) #define MAX(a,b) ( ((a) > (b)) ? (a) : (b) ) #define SQR(x) ((x) * (x)) #define ONE_OVER_SQRT_4PI 0.282094791773878143474039725780 #define VERR_DEF_...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
add_fluxes_and_source_terms_to_hydro_rhss.C
// Side note: the following values could be used for cell averaged gfs: // am2=-1.0/12.0, am1=7.0/12.0, a0=7.0/12.0, a1=-1.0/12.0 // However, since the metric gfs store the grid point values instead of the cell average, // the following coefficients should be used: // am2 = -1/16, am1 = 9/16, a0 = 9/16, ...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
driver_evaluate_MHD_rhs.h
#ifndef DRIVER_EVALUATE_MHD_RHS_H_ #define DRIVER_EVALUATE_MHD_RHS_H_ /* PRIVATE FUNCTIONS, Called within driver_evaluate_MHD_rhs.C ONLY */ static void ftilde_gf_compute(const cGH *cctkGH,const int *cctk_lsh,const int flux_dirn,gf_and_gz_struct *input,CCTK_REAL *ftilde_gf); static void reconstruct_set_of_prims_PPM(con...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
MoL_registration.C
//-------------------------------------------------------------------------- // Register with the time stepper // (MoL thorn, found in arrangements/CactusBase/MoL) // To understand this, read documentation in arrangements/CactusBase/MoL/doc //-------------------------------------------------------------------------- ...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
harm_primitives_headers.h
/*********************************************************************************** Copyright 2006 Charles F. Gammie, Jonathan C. McKinney, Scott C. Noble, Gabor Toth, and Luca Del Zanna HARM version 1.0 (released May 1, 2006) This file is part of HARM. HARM is...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
convert_ADM_to_BSSN__enforce_detgtij_eq_1__and_compute_gtupij.C
#include "cctk.h" #include <cmath> #include <cstdio> #include <cstdlib> #include "cctk_Parameters.h" void IllinoisGRMHD_convert_ADM_to_BSSN__enforce_detgtij_eq_1__and_compute_gtupij (const cGH *cctkGH,const int *cctk_lsh, CCTK_REAL *gxx,CCTK_REAL *gxy,CCTK_REAL *gxz,CCTK_REAL *gyy,CCTK_REAL *gyz,CCTK_REAL *gzz,CCTK_R...
WVUThorns/IllinoisGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Configuration definition for thorn IllinoisGRMHD REQUIRES EOS_Omni Boundary CartGrid3D SpaceMask PROVIDES IllinoisGRMHD { SCRIPT LANG }
# Interface definition for thorn IllinoisGRMHD implements: IllinoisGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid includes header: IllinoisGRMHD_headers.h in IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h public: #vvvvvvvv EVOLVED VARIABLES vvvvvvvv# #cctk_real grmhd_conservatives type ...
# Parameter definitions for thorn IllinoisGRMHD shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK_INT metric_timelevels ######################################################### # Timestepping (MoL) stuff shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars restricted: CCTK...
# Scheduler setup for IllinoisGRMHD STORAGE: ADMBase::metric[metric_timelevels], ADMBase::curv[metric_timelevels], ADMBase::lapse[lapse_timelevels], ADMBase::shift[shift_timelevels] STORAGE: IllinoisGRMHD::BSSN_quantities STORAGE: grmhd_conservatives[3],em_Ax[3],em_Ay[3],em_Az[3],em_psi6phi[3] STORAGE: grmhd_primiti...
driver_conserv_to_prims.C
/* We evolve forward in time a set of functions called the * "conservative variables", and any time the conserv's * are updated, we must solve for the primitive variables * (rho, pressure, velocities) using a Newton-Raphson * technique, before reconstructing & evaluating the RHSs * of the MHD equations aga...
WVUThorns/Convert_to_HydroBase
https://bitbucket.org/zach_etienne/wvuthorns.git
# Interface definition for thorn Convert_to_HydroBase # $Header:$ implements: Convert_to_HydroBase inherits: grid HydroBase ADMBase IllinoisGRMHD uses include header: IllinoisGRMHD_headers.h
# Parameter definitions for thorn convert_to_HydroBase # $Header:$ ############################################################################# ### import HydroBase & ADMBase parameters shares: HydroBase USES CCTK_INT timelevels shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK...
# Schedule definitions for thorn Convert_to_HydroBase # $Header:$ SCHEDULE Convert_to_HydroBase AT CCTK_INITIAL AFTER SetTmunu { LANG: C } "Convert IllinoisGRMHD-native variables to HydroBase" SCHEDULE Convert_to_HydroBase AT CCTK_ANALYSIS BEFORE compute_bi_b2_Poyn_fluxET BEFORE particle_tracerET BEFORE VolumeInteg...
Convert_to_HydroBase.C
#include "cctk.h" #include <cstdio> #include <cstdlib> #include <cmath> #include <sys/time.h> #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "IllinoisGRMHD_headers.h" void Convert_to_HydroBase(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; // Generally, we only need the ...
WVUThorns/Convert_to_HydroBase
https://bitbucket.org/zach_etienne/wvuthorns.git
# Interface definition for thorn Convert_to_HydroBase # $Header:$ implements: Convert_to_HydroBase inherits: grid HydroBase ADMBase IllinoisGRMHD uses include header: IllinoisGRMHD_headers.h
# Parameter definitions for thorn convert_to_HydroBase # $Header:$ ############################################################################# ### import HydroBase & ADMBase parameters shares: HydroBase USES CCTK_INT timelevels shares: ADMBase USES CCTK_INT lapse_timelevels USES CCTK_INT shift_timelevels USES CCTK...
# Schedule definitions for thorn Convert_to_HydroBase # $Header:$ SCHEDULE Convert_to_HydroBase AT CCTK_INITIAL AFTER SetTmunu { LANG: C } "Convert IllinoisGRMHD-native variables to HydroBase" SCHEDULE Convert_to_HydroBase AT CCTK_ANALYSIS BEFORE compute_bi_b2_Poyn_fluxET BEFORE particle_tracerET BEFORE VolumeInteg...
make.code.defn
# Main make.code.defn file for thorn Convert_to_HydroBase # $Header:$ # Source files in this directory SRCS = Convert_to_HydroBase.C # Subdirectories containing source files SUBDIRS =
WVUThorns/ID_converter_ILGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Interface definition for thorn ID_converter_ILGRMHD implements: ID_converter_ILGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid, IllinoisGRMHD uses include header: IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h
# Parameter definitions for thorn ID_converter_ILGRMHD shares: IllinoisGRMHD USES KEYWORD rho_b_max USES KEYWORD rho_b_atm USES KEYWORD tau_atm USES KEYWORD K_poly USES KEYWORD neos USES KEYWORD gamma_th USES KEYWORD Sym_Bz USES KEYWORD GAMMA_SPEED_LIMIT USES KEYWORD Psi6threshold USES KEYWORD update_Tmunu private: ...
# Schedule definitions for thorn ID_converter_ILGRMHD schedule group IllinoisGRMHD_ID_Converter at CCTK_INITIAL after HydroBase_Initial before Convert_to_HydroBase { } "Translate ET-generated, HydroBase-compatible initial data and convert into variables used by IllinoisGRMHD" schedule set_IllinoisGRMHD_metric_GRMHD_v...
set_IllinoisGRMHD_metric_GRMHD_variables_based_on_HydroBase_and_ADMBase_variables.C
/******************************** * CONVERT ET ID TO IllinoisGRMHD * * Written in 2014 by Zachariah B. Etienne * * Sets metric & MHD variables needed * by IllinoisGRMHD, converting from * HydroBase and ADMBase. ********************************/ #include <stdio.h> #include <stdlib.h> #include <math.h> #includ...
WVUThorns/ID_converter_ILGRMHD
https://bitbucket.org/zach_etienne/wvuthorns.git
# Interface definition for thorn ID_converter_ILGRMHD implements: ID_converter_ILGRMHD inherits: ADMBase, Boundary, SpaceMask, Tmunubase, HydroBase, grid, IllinoisGRMHD uses include header: IllinoisGRMHD_headers.h USES INCLUDE: Symmetry.h
# Parameter definitions for thorn ID_converter_ILGRMHD shares: IllinoisGRMHD USES KEYWORD rho_b_max USES KEYWORD rho_b_atm USES KEYWORD tau_atm USES KEYWORD K_poly USES KEYWORD neos USES KEYWORD gamma_th USES KEYWORD Sym_Bz USES KEYWORD GAMMA_SPEED_LIMIT USES KEYWORD Psi6threshold USES KEYWORD update_Tmunu private: ...
# Schedule definitions for thorn ID_converter_ILGRMHD schedule group IllinoisGRMHD_ID_Converter at CCTK_INITIAL after HydroBase_Initial before Convert_to_HydroBase { } "Translate ET-generated, HydroBase-compatible initial data and convert into variables used by IllinoisGRMHD" schedule set_IllinoisGRMHD_metric_GRMHD_v...
make.code.defn
# Main make.code.defn file for thorn ID_converter_ILGRMHD # Source files in this directory SRCS = set_IllinoisGRMHD_metric_GRMHD_variables_based_on_HydroBase_and_ADMBase_variables.C
WVUThorns/Seed_Magnetic_Fields
https://bitbucket.org/zach_etienne/wvuthorns.git
# Interface definition for thorn Seed_Magnetic_Fields IMPLEMENTS: seed_magnetic_fields INHERITS: grid ADMBase HydroBase
# Parameter definitions for thorn Seed_Magnetic_Fields restricted: BOOLEAN enable_IllinoisGRMHD_staggered_A_fields "Define A fields on an IllinoisGRMHD staggered grid" { } "yes" REAL A_b "Magnetic field strength parameter." { *:* :: "Any real" } 1e-3 REAL P_cut "Cutoff pressure, below which vector potential is set ...
# Schedule definitions for thorn Seed_Magnetic_Fields # Zach says: these explicit STORAGE statements ARE necessary. Otherwise, segfault. STORAGE: HydroBase::rho[1],HydroBase::press[1],HydroBase::eps[1],HydroBase::vel[1],HydroBase::Bvec[1],HydroBase::Avec[1],HydroBase::Aphi[1] SCHEDULE Seed_Magnetic_Fields at CCTK_INI...
make.code.defn
# Main make.code.defn file for thorn Seed_Magnetic_Fields # Source files in this directory SRCS = Seed_Magnetic_Fields.C # Subdirectories containing source files SUBDIRS =
WVUThorns/Seed_Magnetic_Fields
https://bitbucket.org/zach_etienne/wvuthorns.git
# Interface definition for thorn Seed_Magnetic_Fields IMPLEMENTS: seed_magnetic_fields INHERITS: grid ADMBase HydroBase
# Parameter definitions for thorn Seed_Magnetic_Fields restricted: BOOLEAN enable_IllinoisGRMHD_staggered_A_fields "Define A fields on an IllinoisGRMHD staggered grid" { } "yes" REAL A_b "Magnetic field strength parameter." { *:* :: "Any real" } 1e-3 REAL P_cut "Cutoff pressure, below which vector potential is set ...
# Schedule definitions for thorn Seed_Magnetic_Fields # Zach says: these explicit STORAGE statements ARE necessary. Otherwise, segfault. STORAGE: HydroBase::rho[1],HydroBase::press[1],HydroBase::eps[1],HydroBase::vel[1],HydroBase::Bvec[1],HydroBase::Avec[1],HydroBase::Aphi[1] SCHEDULE Seed_Magnetic_Fields at CCTK_INI...
Seed_Magnetic_Fields.C
/* Seeds magnetic fields according to prescription as specified in Appendix B of the IllinoisGRMHD code announcement paper: http://arxiv.org/pdf/1501.07276.pdf Note that both staggered (IllinoisGRMHD-compatible) and unstaggered A-field options are supported. */ #include <cstdio> #include <cctk.h> #includ...