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
Carpet/CarpetRegrid2
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetRegrid2 REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: Timer.hh USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: dh.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: mpi_string.hh USES INCLUDE HEADER: region.hh USES...
# Parameter definitions for thorn CarpetRegrid2 BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always { } "no" BOOLEAN veryverbose "Display much regridding information on the terminal" STEERABLE=always { } "no" CCTK_INT min_distance "Minimum distance (in grid points) between coarse and ...
# Schedule definitions for thorn CarpetRegrid2 STORAGE: last_iteration last_map STORAGE: active num_levels positions radii radiixyz STORAGE: old_active old_positions old_num_levels old_radiixyz if (adaptive_refinement) { STORAGE: level_mask } SCHEDULE CarpetRegrid2_ParamCheck AT paramcheck { LANG: C } "Check pa...
regrid.cc
#include <algorithm> #include <cassert> #include <cmath> #include <cstdlib> #include <iostream> #include <sstream> #include <typeinfo> #include <vector> #include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <Timer.hh> #include <bbox.hh> #include <bboxset.hh> #include <defs.hh> #include ...
Carpet/CarpetRegrid2
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetRegrid2 REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: Timer.hh USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: dh.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: mpi_string.hh USES INCLUDE HEADER: region.hh USES...
# Parameter definitions for thorn CarpetRegrid2 BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always { } "no" BOOLEAN veryverbose "Display much regridding information on the terminal" STEERABLE=always { } "no" CCTK_INT min_distance "Minimum distance (in grid points) between coarse and ...
# Schedule definitions for thorn CarpetRegrid2 STORAGE: last_iteration last_map STORAGE: active num_levels positions radii radiixyz STORAGE: old_active old_positions old_num_levels old_radiixyz if (adaptive_refinement) { STORAGE: level_mask } SCHEDULE CarpetRegrid2_ParamCheck AT paramcheck { LANG: C } "Check pa...
initialise.cc
#include <cassert> #include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include "indexing.hh" namespace CarpetRegrid2 { extern "C" { void CarpetRegrid2_Initialise(CCTK_ARGUMENTS); } void CarpetRegrid2_Initialise(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; // Ini...
Carpet/CarpetRegrid2
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetRegrid2 REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: Timer.hh USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: dh.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: mpi_string.hh USES INCLUDE HEADER: region.hh USES...
# Parameter definitions for thorn CarpetRegrid2 BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always { } "no" BOOLEAN veryverbose "Display much regridding information on the terminal" STEERABLE=always { } "no" CCTK_INT min_distance "Minimum distance (in grid points) between coarse and ...
# Schedule definitions for thorn CarpetRegrid2 STORAGE: last_iteration last_map STORAGE: active num_levels positions radii radiixyz STORAGE: old_active old_positions old_num_levels old_radiixyz if (adaptive_refinement) { STORAGE: level_mask } SCHEDULE CarpetRegrid2_ParamCheck AT paramcheck { LANG: C } "Check pa...
amr.cc
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <cmath> #include <carpet.hh> #include <mpi_string.hh> #include "boundary.hh" namespace CarpetRegrid2 { using namespace std; using namespace Carpet; void evaluate_level_mask(cGH const *restrict const cctkGH, ...
Carpet/CarpetRegrid2
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetRegrid2 REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: Timer.hh USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: dh.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: mpi_string.hh USES INCLUDE HEADER: region.hh USES...
# Parameter definitions for thorn CarpetRegrid2 BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always { } "no" BOOLEAN veryverbose "Display much regridding information on the terminal" STEERABLE=always { } "no" CCTK_INT min_distance "Minimum distance (in grid points) between coarse and ...
# Schedule definitions for thorn CarpetRegrid2 STORAGE: last_iteration last_map STORAGE: active num_levels positions radii radiixyz STORAGE: old_active old_positions old_num_levels old_radiixyz if (adaptive_refinement) { STORAGE: level_mask } SCHEDULE CarpetRegrid2_ParamCheck AT paramcheck { LANG: C } "Check pa...
paramcheck.cc
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <carpet.hh> namespace CarpetRegrid2 { using namespace Carpet; extern "C" { void CarpetRegrid2_ParamCheck(CCTK_ARGUMENTS); } void CarpetRegrid2_ParamCheck(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; enu...
Carpet/CarpetRegrid2
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetRegrid2 REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: Timer.hh USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: dh.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: mpi_string.hh USES INCLUDE HEADER: region.hh USES...
# Parameter definitions for thorn CarpetRegrid2 BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always { } "no" BOOLEAN veryverbose "Display much regridding information on the terminal" STEERABLE=always { } "no" CCTK_INT min_distance "Minimum distance (in grid points) between coarse and ...
# Schedule definitions for thorn CarpetRegrid2 STORAGE: last_iteration last_map STORAGE: active num_levels positions radii radiixyz STORAGE: old_active old_positions old_num_levels old_radiixyz if (adaptive_refinement) { STORAGE: level_mask } SCHEDULE CarpetRegrid2_ParamCheck AT paramcheck { LANG: C } "Check pa...
indexing.hh
#ifndef INDEXING_HH #define INDEXING_HH #include <cassert> #include <cctk.h> namespace CarpetRegrid2 { // Get indexing information for a vector grid array void getvectorindex2(cGH const *cctkGH, char const *groupname, int *lsh); static inline int index2(int const *const lsh, int const i, int const j) { assert(ls...
Carpet/CarpetRegrid2
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetRegrid2 REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: Timer.hh USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: dh.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: mpi_string.hh USES INCLUDE HEADER: region.hh USES...
# Parameter definitions for thorn CarpetRegrid2 BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always { } "no" BOOLEAN veryverbose "Display much regridding information on the terminal" STEERABLE=always { } "no" CCTK_INT min_distance "Minimum distance (in grid points) between coarse and ...
# Schedule definitions for thorn CarpetRegrid2 STORAGE: last_iteration last_map STORAGE: active num_levels positions radii radiixyz STORAGE: old_active old_positions old_num_levels old_radiixyz if (adaptive_refinement) { STORAGE: level_mask } SCHEDULE CarpetRegrid2_ParamCheck AT paramcheck { LANG: C } "Check pa...
property.hh
#ifndef PROPERTY_HH #define PROPERTY_HH // Consistency properties for the grid structure #include <vector> #include <bboxset.hh> #include <defs.hh> #include <dh.hh> #include <gh.hh> namespace CarpetRegrid2 { // Each property consists of a test, which returns true or false // depending on whether the property is sa...
Carpet/CarpetRegrid2
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetRegrid2 REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: Timer.hh USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: dh.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: mpi_string.hh USES INCLUDE HEADER: region.hh USES...
# Parameter definitions for thorn CarpetRegrid2 BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always { } "no" BOOLEAN veryverbose "Display much regridding information on the terminal" STEERABLE=always { } "no" CCTK_INT min_distance "Minimum distance (in grid points) between coarse and ...
# Schedule definitions for thorn CarpetRegrid2 STORAGE: last_iteration last_map STORAGE: active num_levels positions radii radiixyz STORAGE: old_active old_positions old_num_levels old_radiixyz if (adaptive_refinement) { STORAGE: level_mask } SCHEDULE CarpetRegrid2_ParamCheck AT paramcheck { LANG: C } "Check pa...
make.code.defn
# Main make.code.defn file for thorn CarpetRegrid2 # Source files in this directory SRCS = amr.cc \ boundary.cc \ indexing.cc \ initialise.cc \ paramcheck.cc \ property.cc \ regrid.cc # Subdirectories containing source files SUBDIRS =
Carpet/CarpetRegrid2
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetRegrid2 REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: Timer.hh USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: dh.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: mpi_string.hh USES INCLUDE HEADER: region.hh USES...
# Parameter definitions for thorn CarpetRegrid2 BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always { } "no" BOOLEAN veryverbose "Display much regridding information on the terminal" STEERABLE=always { } "no" CCTK_INT min_distance "Minimum distance (in grid points) between coarse and ...
# Schedule definitions for thorn CarpetRegrid2 STORAGE: last_iteration last_map STORAGE: active num_levels positions radii radiixyz STORAGE: old_active old_positions old_num_levels old_radiixyz if (adaptive_refinement) { STORAGE: level_mask } SCHEDULE CarpetRegrid2_ParamCheck AT paramcheck { LANG: C } "Check pa...
boundary.hh
#ifndef BOUNDARY_HH #define BOUNDARY_HH #include <defs.hh> #include <gh.hh> #include <vect.hh> #include <ostream> namespace CarpetRegrid2 { // Convert a coordinate location to an index location. For cell // centring, shift upwards. ivect rpos2ipos(rvect const &rpos, rvect const &origin, rvect const &scale, ...
Carpet/CarpetRegrid2
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetRegrid2 REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: Timer.hh USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: dh.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: mpi_string.hh USES INCLUDE HEADER: region.hh USES...
# Parameter definitions for thorn CarpetRegrid2 BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always { } "no" BOOLEAN veryverbose "Display much regridding information on the terminal" STEERABLE=always { } "no" CCTK_INT min_distance "Minimum distance (in grid points) between coarse and ...
# Schedule definitions for thorn CarpetRegrid2 STORAGE: last_iteration last_map STORAGE: active num_levels positions radii radiixyz STORAGE: old_active old_positions old_num_levels old_radiixyz if (adaptive_refinement) { STORAGE: level_mask } SCHEDULE CarpetRegrid2_ParamCheck AT paramcheck { LANG: C } "Check pa...
boundary.cc
#include <cctk.h> #include <cctk_Parameters.h> #include <carpet.hh> #include "boundary.hh" namespace CarpetRegrid2 { using namespace Carpet; // Convert a coordinate location to an index location. For cell // centring, shift upwards. ivect rpos2ipos(rvect const &rpos, rvect const &origin, rvect const &scale, ...
Carpet/CarpetRegrid2
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetRegrid2 REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: Timer.hh USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: dh.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: mpi_string.hh USES INCLUDE HEADER: region.hh USES...
# Parameter definitions for thorn CarpetRegrid2 BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always { } "no" BOOLEAN veryverbose "Display much regridding information on the terminal" STEERABLE=always { } "no" CCTK_INT min_distance "Minimum distance (in grid points) between coarse and ...
# Schedule definitions for thorn CarpetRegrid2 STORAGE: last_iteration last_map STORAGE: active num_levels positions radii radiixyz STORAGE: old_active old_positions old_num_levels old_radiixyz if (adaptive_refinement) { STORAGE: level_mask } SCHEDULE CarpetRegrid2_ParamCheck AT paramcheck { LANG: C } "Check pa...
property.cc
#include <cctk.h> #include <cctk_Parameters.h> #include <carpet.hh> #include "boundary.hh" #include "property.hh" #include <typeinfo> // Consistency properties for the grid structure namespace CarpetRegrid2 { using namespace std; using namespace Carpet; // Each property consists of a test, which returns true or ...
Carpet/CarpetRegridTest
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn CarpetRegridTest implements: CarpetRegridTest inherits: grid #tags='Prolongation="ENO"' CCTK_REAL testscalar type=GF timelevels=3 { phi, phi_error, phi_relerror } "The test scalar field"
# Parameter definitions for thorn CarpetRegridTest private: REAL radius "The radius of the gaussian wave" { *:* :: "No restriction" } 0.0 REAL sigma "The sigma for the gaussian wave" { 0:* :: "Positive" } 0.1 REAL amplitude "The amplitude of the wave" { *:* :: "No restriction" } 1.0
# Schedule definitions for thorn CarpetRegridTest schedule CarpetRegridTest_Startup AT STARTUP { LANG: C } "Startup banner" schedule CarpetRegrid_SetupGaussian at INITIAL { STORAGE: testscalar[3] LANG: C } "Gaussian Initial Data" schedule CarpetRegrid_TestGaussian at Analysis { STORAGE: ...
TestGaussian.c
#include <math.h> #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" void CarpetRegrid_TestGaussian(CCTK_ARGUMENTS) { DECLARE_CCTK_PARAMETERS; DECLARE_CCTK_ARGUMENTS; int i, j, k; int index; CCTK_REAL X, Y, Z, R; for (k = 0; k < cctk_lsh[2]; k++) { for (j = 0; j < cctk_lsh[1...
Carpet/CarpetRegridTest
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn CarpetRegridTest implements: CarpetRegridTest inherits: grid #tags='Prolongation="ENO"' CCTK_REAL testscalar type=GF timelevels=3 { phi, phi_error, phi_relerror } "The test scalar field"
# Parameter definitions for thorn CarpetRegridTest private: REAL radius "The radius of the gaussian wave" { *:* :: "No restriction" } 0.0 REAL sigma "The sigma for the gaussian wave" { 0:* :: "Positive" } 0.1 REAL amplitude "The amplitude of the wave" { *:* :: "No restriction" } 1.0
# Schedule definitions for thorn CarpetRegridTest schedule CarpetRegridTest_Startup AT STARTUP { LANG: C } "Startup banner" schedule CarpetRegrid_SetupGaussian at INITIAL { STORAGE: testscalar[3] LANG: C } "Gaussian Initial Data" schedule CarpetRegrid_TestGaussian at Analysis { STORAGE: ...
SetupGaussian.c
#include <math.h> #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" void CarpetRegrid_SetupGaussian(CCTK_ARGUMENTS) { DECLARE_CCTK_PARAMETERS; DECLARE_CCTK_ARGUMENTS; int i, j, k; int index; CCTK_REAL R; for (k = 0; k < cctk_lsh[2]; k++) { for (j = 0; j < cctk_lsh[1]; j++) ...
Carpet/CarpetRegridTest
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn CarpetRegridTest implements: CarpetRegridTest inherits: grid #tags='Prolongation="ENO"' CCTK_REAL testscalar type=GF timelevels=3 { phi, phi_error, phi_relerror } "The test scalar field"
# Parameter definitions for thorn CarpetRegridTest private: REAL radius "The radius of the gaussian wave" { *:* :: "No restriction" } 0.0 REAL sigma "The sigma for the gaussian wave" { 0:* :: "Positive" } 0.1 REAL amplitude "The amplitude of the wave" { *:* :: "No restriction" } 1.0
# Schedule definitions for thorn CarpetRegridTest schedule CarpetRegridTest_Startup AT STARTUP { LANG: C } "Startup banner" schedule CarpetRegrid_SetupGaussian at INITIAL { STORAGE: testscalar[3] LANG: C } "Gaussian Initial Data" schedule CarpetRegrid_TestGaussian at Analysis { STORAGE: ...
make.code.defn
# Main make.code.defn file for thorn CarpetRegridTest # Source files in this directory SRCS = Startup.c SetupGaussian.c TestGaussian.c # Subdirectories containing source files SUBDIRS =
Carpet/CarpetRegridTest
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn CarpetRegridTest implements: CarpetRegridTest inherits: grid #tags='Prolongation="ENO"' CCTK_REAL testscalar type=GF timelevels=3 { phi, phi_error, phi_relerror } "The test scalar field"
# Parameter definitions for thorn CarpetRegridTest private: REAL radius "The radius of the gaussian wave" { *:* :: "No restriction" } 0.0 REAL sigma "The sigma for the gaussian wave" { 0:* :: "Positive" } 0.1 REAL amplitude "The amplitude of the wave" { *:* :: "No restriction" } 1.0
# Schedule definitions for thorn CarpetRegridTest schedule CarpetRegridTest_Startup AT STARTUP { LANG: C } "Startup banner" schedule CarpetRegrid_SetupGaussian at INITIAL { STORAGE: testscalar[3] LANG: C } "Gaussian Initial Data" schedule CarpetRegrid_TestGaussian at Analysis { STORAGE: ...
InitialData.c
/*@@ @file InitialData.c @date @author Werner Benger @desc Initial data for the 3D Wave Equation Derived from Tom Goodale @enddesc @@*/ #include <math.h> #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" static CCTK_REAL sqr(CCTK_REAL val) { return...
Carpet/CarpetRegridTest
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn CarpetRegridTest implements: CarpetRegridTest inherits: grid #tags='Prolongation="ENO"' CCTK_REAL testscalar type=GF timelevels=3 { phi, phi_error, phi_relerror } "The test scalar field"
# Parameter definitions for thorn CarpetRegridTest private: REAL radius "The radius of the gaussian wave" { *:* :: "No restriction" } 0.0 REAL sigma "The sigma for the gaussian wave" { 0:* :: "Positive" } 0.1 REAL amplitude "The amplitude of the wave" { *:* :: "No restriction" } 1.0
# Schedule definitions for thorn CarpetRegridTest schedule CarpetRegridTest_Startup AT STARTUP { LANG: C } "Startup banner" schedule CarpetRegrid_SetupGaussian at INITIAL { STORAGE: testscalar[3] LANG: C } "Gaussian Initial Data" schedule CarpetRegrid_TestGaussian at Analysis { STORAGE: ...
Startup.c
#include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" int CarpetRegridTest_Startup(void) { const char *banner = "CarpetRegridTest: Thoroughly testing PMR"; CCTK_RegisterBanner(banner); return 0; }
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
slab.cc
#include <assert.h> #include <stdlib.h> #include <string.h> #include <algorithm> #include <limits> #include <vector> #include "cctk.h" #include "util_Table.h" #include "bbox.hh" #include "bboxset.hh" #include "dh.hh" #include "gdata.hh" #include "gh.hh" #include "ggf.hh" #include "vect.hh" #include "carpet.hh" #i...
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
mapping.cc
#include <cassert> #include "cctk.h" #include "util_Table.h" #include "carpet.hh" #include "mapping.hh" namespace CarpetSlab { using namespace Carpet; int StoreMapping(mapping *const mp) { int const table = Util_TableCreate(UTIL_TABLE_FLAGS_DEFAULT); assert(table >= 0); int const ierr = Util_TableSetPointe...
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
Get.cc
#include <cassert> #include "cctk.h" #include "carpet.hh" #include "mapping.hh" #include "slab.hh" #include "Get.hh" namespace CarpetSlab { using namespace Carpet; CCTK_INT CarpetSlab_Get(CCTK_POINTER_TO_CONST const cctkGH_, CCTK_INT const mapping_handle, CCTK_INT const proc, CCTK_IN...
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
GetHyperslab.h
#ifndef CARPETSLAB_GETHYPERSLAB_H #define CARPETSLAB_GETHYPERSLAB_H #include "cctk.h" #ifdef __cplusplus namespace CarpetSlab { extern "C" { #endif /* Old interface -- don't use */ int Hyperslab_GetHyperslab(const cGH *const GH, const int target_proc, const int vindex, const int vtimelvl, ...
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
Get.hh
#ifndef CARPETSLAB_GET_HH #define CARPETSLAB_GET_HH #include "cctk.h" namespace CarpetSlab { extern "C" CCTK_INT CarpetSlab_Get(CCTK_POINTER_TO_CONST const cctkGH, CCTK_INT const mapping_handle, CCTK_INT const proc, CCTK_INT const vindex, ...
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
mapping.hh
#ifndef CARPETSLAB_MAPPING_HH #define CARPETSLAB_MAPPING_HH #include <vector> #include "cctk.h" namespace CarpetSlab { // Mapping object // (just store the mapping) struct mapping { int vindex; int hdim; vector<int> origin; // [vdim] vector<int> dirs; // [hdim] vector<int> stride; // [hdim] vector<int...
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
slab.hh
#ifndef CARPETSLAB_SLAB_HH #define CARPETSLAB_SLAB_HH #include "cctk.h" namespace CarpetSlab { void FillSlab(const cGH *const cgh, const int dest_proc, const int n, const int tl, const int hdim, const int origin[/*vdim*/], const int dirs[/*hdim*/], const int stride[/*hdim*/], ...
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
README
mapping: handle mappings Get: new style interface, uses function aliasing slab: internal routine that actually performs the slabbing GetHyperslab: old style interface, uses the include header mechanism
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
slab.h
#ifndef CARPETSLAB_H #define CARPETSLAB_H #include "cctk.h" #ifdef __cplusplus namespace CarpetSlab { extern "C" { #endif CCTK_INT CarpetSlab_Get(CCTK_POINTER_TO_CONST const cctkGH, CCTK_INT const mapping_handle, CCTK_INT const proc, CCTK_INT const vindex, CCTK_INT con...
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
make.code.defn
# Main make.code.defn file for thorn CarpetSlab -*-Makefile-*- # Source files in this directory SRCS = Get.cc GetHyperslab.cc mapping.cc slab.cc # Subdirectories containing source files SUBDIRS =
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
GetHyperslab.hh
#ifndef CARPETSLAB_GETHYPERSLAB_HH #define CARPETSLAB_GETHYPERSLAB_HH #include "GetHyperslab.h" namespace CarpetSlab { void *GetSlab(const cGH *const cgh, const int dest_proc, const int n, const int tl, const int hdim, const int origin[/*vdim*/], const int dirs[/*hdim*/], const int stride...
Carpet/CarpetSlab
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CarpetSlab REQUIRES Carpet CarpetLib
# Interface definition for thorn CarpetSlab IMPLEMENTS: Hyperslab includes header: GetHyperslab.h in Hyperslab.h uses include header: carpet.hh uses include header: bbox.hh uses include header: bboxset.hh uses include header: vect.hh uses include header: gdata.hh uses include header: dh.hh uses include header: gg...
# Parameter definitions for thorn CarpetSlab
# Schedule definitions for thorn CarpetSlab
GetHyperslab.cc
#include <cassert> #include <cstdlib> #include <cstring> #include <vector> #include "cctk.h" #include "bbox.hh" #include "bboxset.hh" #include "dh.hh" #include "gdata.hh" #include "ggf.hh" #include "gh.hh" #include "vect.hh" #include "carpet.hh" #include "slab.hh" #include "GetHyperslab.hh" namespace CarpetSlab {...
Carpet/CarpetTracker
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn CarpetTracker IMPLEMENTS: CarpetTracker INHERITS: SphericalSurface CarpetRegrid2 # translate SphericalSurface name into ID CCTK_INT \ FUNCTION sf_IdFromName (CCTK_INT IN id, CCTK_POINTER_TO_CONST IN name) USES FUNCTION sf_IdFromName
# Parameter definitions for thorn CarpetTracker BOOLEAN verbose "Tell what is going on" STEERABLE=always { } no CCTK_INT surface[10] "Spherical surface index which is the source for the location of the refine regions" STEERABLE=always { -1 :: "disabled" 0:* :: "active" } -1 CCTK_STRING surface_name[10] "S...
# Schedule definitions for thorn CarpetTracker SCHEDULE CarpetTracker_SetPositions AT preregrid { LANG: C OPTIONS: global } "Set positions of refined regions"
make.code.defn
# Main make.code.defn file for thorn CarpetTracker # Source files in this directory SRCS = SetPositions.cc # Subdirectories containing source files SUBDIRS =
Carpet/CarpetTracker
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn CarpetTracker IMPLEMENTS: CarpetTracker INHERITS: SphericalSurface CarpetRegrid2 # translate SphericalSurface name into ID CCTK_INT \ FUNCTION sf_IdFromName (CCTK_INT IN id, CCTK_POINTER_TO_CONST IN name) USES FUNCTION sf_IdFromName
# Parameter definitions for thorn CarpetTracker BOOLEAN verbose "Tell what is going on" STEERABLE=always { } no CCTK_INT surface[10] "Spherical surface index which is the source for the location of the refine regions" STEERABLE=always { -1 :: "disabled" 0:* :: "active" } -1 CCTK_STRING surface_name[10] "S...
# Schedule definitions for thorn CarpetTracker SCHEDULE CarpetTracker_SetPositions AT preregrid { LANG: C OPTIONS: global } "Set positions of refined regions"
SetPositions.cc
#include <cassert> #include <sstream> #include <string> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" namespace CarpetTracker { using namespace std; // Maximum number of tracked surfaces int const num_surfaces = 10; extern "C" { void CarpetTracker_SetPositio...
Carpet/CycleClock
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CycleClock PROVIDES CycleClock { }
# Interface definition for thorn CycleClock IMPLEMENTS: CycleClock INCLUDES HEADER: cycleclock.h IN cycleclock.h
# Parameter definitions for thorn CycleClock BOOLEAN register_clock "Register cycle counter as Cactus clock" STEERABLE=recover { } "yes"
# Schedule definitions for thorn CycleClock SCHEDULE CycleClock_Setup AT startup BEFORE Driver_Startup { LANG: C } "Set up CycleClock"
cycle.h
/* * Copyright (c) 2003, 2007-8 Matteo Frigo * Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, in...
Carpet/CycleClock
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CycleClock PROVIDES CycleClock { }
# Interface definition for thorn CycleClock IMPLEMENTS: CycleClock INCLUDES HEADER: cycleclock.h IN cycleclock.h
# Parameter definitions for thorn CycleClock BOOLEAN register_clock "Register cycle counter as Cactus clock" STEERABLE=recover { } "yes"
# Schedule definitions for thorn CycleClock SCHEDULE CycleClock_Setup AT startup BEFORE Driver_Startup { LANG: C } "Set up CycleClock"
clock.cc
#include "cycleclock.h" #ifdef HAVE_TICK_COUNTER #include <cctk.h> #include <cctk_Parameters.h> #include <cmath> namespace CycleClock { using namespace std; class cycleclock_t { double sum; double sum2; double min; double max; double count; ticks last; public: cycleclock_t() { reset(); sta...
Carpet/CycleClock
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CycleClock PROVIDES CycleClock { }
# Interface definition for thorn CycleClock IMPLEMENTS: CycleClock INCLUDES HEADER: cycleclock.h IN cycleclock.h
# Parameter definitions for thorn CycleClock BOOLEAN register_clock "Register cycle counter as Cactus clock" STEERABLE=recover { } "yes"
# Schedule definitions for thorn CycleClock SCHEDULE CycleClock_Setup AT startup BEFORE Driver_Startup { LANG: C } "Set up CycleClock"
cycleclock.h
#ifndef CYCLECLOCK_H #define CYCLECLOCK_H /* This defines: * typedef XXX ticks; * ticks getticks(); * double elapsed(ticks t1, ticks t0); * Use as: * #include <cycleclock.h> * ticks t0 = getticks(); * ... * ticks t1 = getticks(); * double elapsed_ticks = elapsed(t1, t0); * double e...
Carpet/CycleClock
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CycleClock PROVIDES CycleClock { }
# Interface definition for thorn CycleClock IMPLEMENTS: CycleClock INCLUDES HEADER: cycleclock.h IN cycleclock.h
# Parameter definitions for thorn CycleClock BOOLEAN register_clock "Register cycle counter as Cactus clock" STEERABLE=recover { } "yes"
# Schedule definitions for thorn CycleClock SCHEDULE CycleClock_Setup AT startup BEFORE Driver_Startup { LANG: C } "Set up CycleClock"
make.code.defn
# Main make.code.defn file for thorn CycleClock # Source files in this directory SRCS = clock.cc cycle.cc # Subdirectories containing source files SUBDIRS =
Carpet/CycleClock
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn CycleClock PROVIDES CycleClock { }
# Interface definition for thorn CycleClock IMPLEMENTS: CycleClock INCLUDES HEADER: cycleclock.h IN cycleclock.h
# Parameter definitions for thorn CycleClock BOOLEAN register_clock "Register cycle counter as Cactus clock" STEERABLE=recover { } "yes"
# Schedule definitions for thorn CycleClock SCHEDULE CycleClock_Setup AT startup BEFORE Driver_Startup { LANG: C } "Set up CycleClock"
cycle.cc
#include "cycleclock.h" #ifdef HAVE_TICK_COUNTER #include <cctk.h> // Find a good wall clock timer #ifdef _OPENMP #include <omp.h> #endif #ifdef HAVE_CAPABILITY_MPI #include <mpi.h> #endif #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif static double cycleclock_tick = -1.0; // uninitialised #ifdef HAVE_SYS_TIM...
Carpet/HighOrderWaveTest
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn HighOrderWaveTest
# Interface definition for thorn HighOrderWaveTest implements: HighOrderWaveTest
# Parameter definitions for thorn HighOrderWaveTest
# Schedule definitions for thorn HighOrderWaveTest
make.code.defn
# Main make.code.defn file for thorn HighOrderWaveTest # Source files in this directory SRCS = # Subdirectories containing source files SUBDIRS =
Carpet/LoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn LoopControl OPTIONAL CycleClock hwloc Vectors { } PROVIDES LoopControl { }
# Interface definition for thorn LoopControl IMPLEMENTS: LoopControl INHERITS: CycleClock INCLUDE HEADER: loopcontrol.h IN loopcontrol.h USES INCLUDE HEADER: cycleclock.h USES INCLUDE HEADER: vectors.h CCTK_INT FUNCTION GetNumSMTThreads() USES FUNCTION GetNumSMTThreads CCTK_INT FUNCTION GetCacheInfo1 ...
# Parameter definitions for thorn LoopControl BOOLEAN verbose "Output some loop information at run time" STEERABLE=always { } "no" BOOLEAN veryverbose "Output detailed debug information at run time" STEERABLE=always { } "no" BOOLEAN selftest "Run a self test with every loop (expensive)" STEERABLE=always { } "no" ST...
# Schedule definitions for thorn LoopControl SCHEDULE lc_setup AT startup BEFORE Driver_Startup { LANG: C } "Set up LoopControl" SCHEDULE lc_steer AT prestep { LANG: C OPTIONS: meta } "Update LoopControl algorithm preferences" SCHEDULE lc_statistics_analysis AT analysis { LANG: C OPTIONS: meta } "Output Lo...
loopcontrol.h
#ifndef LOOPCONTROL_H #define LOOPCONTROL_H /* This file uses the namespace LC_* for macros and lc_* for C identifiers. */ #define LC_DIM 3 #ifdef CCODE #include <assert.h> #include <stddef.h> #include <stdlib.h> #include <cctk.h> /* #define lc_assert(x) ((void)0) */ #define lc_assert(x) assert(x) #ifdef __cp...
Carpet/LoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn LoopControl OPTIONAL CycleClock hwloc Vectors { } PROVIDES LoopControl { }
# Interface definition for thorn LoopControl IMPLEMENTS: LoopControl INHERITS: CycleClock INCLUDE HEADER: loopcontrol.h IN loopcontrol.h USES INCLUDE HEADER: cycleclock.h USES INCLUDE HEADER: vectors.h CCTK_INT FUNCTION GetNumSMTThreads() USES FUNCTION GetNumSMTThreads CCTK_INT FUNCTION GetCacheInfo1 ...
# Parameter definitions for thorn LoopControl BOOLEAN verbose "Output some loop information at run time" STEERABLE=always { } "no" BOOLEAN veryverbose "Output detailed debug information at run time" STEERABLE=always { } "no" BOOLEAN selftest "Run a self test with every loop (expensive)" STEERABLE=always { } "no" ST...
# Schedule definitions for thorn LoopControl SCHEDULE lc_setup AT startup BEFORE Driver_Startup { LANG: C } "Set up LoopControl" SCHEDULE lc_steer AT prestep { LANG: C OPTIONS: meta } "Update LoopControl algorithm preferences" SCHEDULE lc_statistics_analysis AT analysis { LANG: C OPTIONS: meta } "Output Lo...
loopcontrol_fortran.h
/* -*-f90-*- */ #ifndef LOOPCONTROL_FORTRAN_H #define LOOPCONTROL_FORTRAN_H #include "cctk.h" #define LC_COARSE_DECLARE(name, D) \ && integer :: name/**/_cmin/**/D, name/**/_cmax/**/D, \ name/**/_cstep/**/D, name/**/_cpos/**/D #define LC_COARSE_OMP_PRIVATE(na...
Carpet/LoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn LoopControl OPTIONAL CycleClock hwloc Vectors { } PROVIDES LoopControl { }
# Interface definition for thorn LoopControl IMPLEMENTS: LoopControl INHERITS: CycleClock INCLUDE HEADER: loopcontrol.h IN loopcontrol.h USES INCLUDE HEADER: cycleclock.h USES INCLUDE HEADER: vectors.h CCTK_INT FUNCTION GetNumSMTThreads() USES FUNCTION GetNumSMTThreads CCTK_INT FUNCTION GetCacheInfo1 ...
# Parameter definitions for thorn LoopControl BOOLEAN verbose "Output some loop information at run time" STEERABLE=always { } "no" BOOLEAN veryverbose "Output detailed debug information at run time" STEERABLE=always { } "no" BOOLEAN selftest "Run a self test with every loop (expensive)" STEERABLE=always { } "no" ST...
# Schedule definitions for thorn LoopControl SCHEDULE lc_setup AT startup BEFORE Driver_Startup { LANG: C } "Set up LoopControl" SCHEDULE lc_steer AT prestep { LANG: C OPTIONS: meta } "Update LoopControl algorithm preferences" SCHEDULE lc_statistics_analysis AT analysis { LANG: C OPTIONS: meta } "Output Lo...
loopcontrol_types.F90
#include "cctk.h" #include "loopcontrol.h" module loopcontrol_types implicit none ! Note: These types must correspond to the corresponding C types ! declared in loopcontrol.h type, bind(C) :: lc_vec_t CCTK_POINTER :: v(LC_DIM) end type lc_vec_t type, bind(C) :: lc_space_t type(lc_v...
Carpet/LoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn LoopControl OPTIONAL CycleClock hwloc Vectors { } PROVIDES LoopControl { }
# Interface definition for thorn LoopControl IMPLEMENTS: LoopControl INHERITS: CycleClock INCLUDE HEADER: loopcontrol.h IN loopcontrol.h USES INCLUDE HEADER: cycleclock.h USES INCLUDE HEADER: vectors.h CCTK_INT FUNCTION GetNumSMTThreads() USES FUNCTION GetNumSMTThreads CCTK_INT FUNCTION GetCacheInfo1 ...
# Parameter definitions for thorn LoopControl BOOLEAN verbose "Output some loop information at run time" STEERABLE=always { } "no" BOOLEAN veryverbose "Output detailed debug information at run time" STEERABLE=always { } "no" BOOLEAN selftest "Run a self test with every loop (expensive)" STEERABLE=always { } "no" ST...
# Schedule definitions for thorn LoopControl SCHEDULE lc_setup AT startup BEFORE Driver_Startup { LANG: C } "Set up LoopControl" SCHEDULE lc_steer AT prestep { LANG: C OPTIONS: meta } "Update LoopControl algorithm preferences" SCHEDULE lc_statistics_analysis AT analysis { LANG: C OPTIONS: meta } "Output Lo...
loopcontrol.F90
#include "cctk.h" #include "loopcontrol.h" module loopcontrol use loopcontrol_types implicit none interface subroutine lc_descr_init(descr, line, file, name) use loopcontrol_types implicit none CCTK_POINTER :: descr integer :: line character(*) :: file ...
Carpet/LoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn LoopControl OPTIONAL CycleClock hwloc Vectors { } PROVIDES LoopControl { }
# Interface definition for thorn LoopControl IMPLEMENTS: LoopControl INHERITS: CycleClock INCLUDE HEADER: loopcontrol.h IN loopcontrol.h USES INCLUDE HEADER: cycleclock.h USES INCLUDE HEADER: vectors.h CCTK_INT FUNCTION GetNumSMTThreads() USES FUNCTION GetNumSMTThreads CCTK_INT FUNCTION GetCacheInfo1 ...
# Parameter definitions for thorn LoopControl BOOLEAN verbose "Output some loop information at run time" STEERABLE=always { } "no" BOOLEAN veryverbose "Output detailed debug information at run time" STEERABLE=always { } "no" BOOLEAN selftest "Run a self test with every loop (expensive)" STEERABLE=always { } "no" ST...
# Schedule definitions for thorn LoopControl SCHEDULE lc_setup AT startup BEFORE Driver_Startup { LANG: C } "Set up LoopControl" SCHEDULE lc_steer AT prestep { LANG: C OPTIONS: meta } "Update LoopControl algorithm preferences" SCHEDULE lc_statistics_analysis AT analysis { LANG: C OPTIONS: meta } "Output Lo...
loopcontrol.cc
#include "loopcontrol.h" #include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <limits> #include <map> #include <ostream> #include <string> #include <vecto...
Carpet/LoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn LoopControl OPTIONAL CycleClock hwloc Vectors { } PROVIDES LoopControl { }
# Interface definition for thorn LoopControl IMPLEMENTS: LoopControl INHERITS: CycleClock INCLUDE HEADER: loopcontrol.h IN loopcontrol.h USES INCLUDE HEADER: cycleclock.h USES INCLUDE HEADER: vectors.h CCTK_INT FUNCTION GetNumSMTThreads() USES FUNCTION GetNumSMTThreads CCTK_INT FUNCTION GetCacheInfo1 ...
# Parameter definitions for thorn LoopControl BOOLEAN verbose "Output some loop information at run time" STEERABLE=always { } "no" BOOLEAN veryverbose "Output detailed debug information at run time" STEERABLE=always { } "no" BOOLEAN selftest "Run a self test with every loop (expensive)" STEERABLE=always { } "no" ST...
# Schedule definitions for thorn LoopControl SCHEDULE lc_setup AT startup BEFORE Driver_Startup { LANG: C } "Set up LoopControl" SCHEDULE lc_steer AT prestep { LANG: C OPTIONS: meta } "Update LoopControl algorithm preferences" SCHEDULE lc_statistics_analysis AT analysis { LANG: C OPTIONS: meta } "Output Lo...
make.code.defn
# Main make.code.defn file for thorn LoopControl # Source files in this directory SRCS = loopcontrol.cc loopcontrol.F90 loopcontrol_types.F90 type_sizes.F90 # Subdirectories containing source files SUBDIRS =
Carpet/LoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn LoopControl OPTIONAL CycleClock hwloc Vectors { } PROVIDES LoopControl { }
# Interface definition for thorn LoopControl IMPLEMENTS: LoopControl INHERITS: CycleClock INCLUDE HEADER: loopcontrol.h IN loopcontrol.h USES INCLUDE HEADER: cycleclock.h USES INCLUDE HEADER: vectors.h CCTK_INT FUNCTION GetNumSMTThreads() USES FUNCTION GetNumSMTThreads CCTK_INT FUNCTION GetCacheInfo1 ...
# Parameter definitions for thorn LoopControl BOOLEAN verbose "Output some loop information at run time" STEERABLE=always { } "no" BOOLEAN veryverbose "Output detailed debug information at run time" STEERABLE=always { } "no" BOOLEAN selftest "Run a self test with every loop (expensive)" STEERABLE=always { } "no" ST...
# Schedule definitions for thorn LoopControl SCHEDULE lc_setup AT startup BEFORE Driver_Startup { LANG: C } "Set up LoopControl" SCHEDULE lc_steer AT prestep { LANG: C OPTIONS: meta } "Update LoopControl algorithm preferences" SCHEDULE lc_statistics_analysis AT analysis { LANG: C OPTIONS: meta } "Output Lo...
type_sizes.F90
#include "cctk.h" #include "cctk_Functions.h" subroutine lc_get_fortran_type_sizes(type_sizes) use loopcontrol_types implicit none DECLARE_CCTK_FUNCTIONS CCTK_POINTER :: type_sizes(3) type(lc_vec_t) :: vec(2) type(lc_space_t) :: space(2) type(lc_control_t) :: control(2) type_sizes(1) = CCTK_P...
Carpet/PeriodicCarpet
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn PeriodicCarpet REQUIRES Carpet CarpetLib
# Interface definition for thorn PeriodicCarpet IMPLEMENTS: PeriodicCarpet INHERITS: grid USES INCLUDE: carpet.hh USES INCLUDE: mpi_string.hh USES INCLUDE: dist.hh CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister CCTK_INT FUNCTION \ ...
# Parameter definitions for thorn PeriodicCarpet BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN periodic "Periodic boundary conditions in all directions" { } "no" BOOLEAN periodic_x "Periodic boundary conditions in x-direction" { } "no" BOOLEAN periodic_y "Periodic bound...
# Schedule definitions for thorn PeriodicCarpet SCHEDULE PeriodicCarpet_ParamCheck AT paramcheck { LANG: C OPTIONS: level } "Register periodic boundary conditions" SCHEDULE PeriodicCarpet_RegisterBC IN SymmetryRegister { LANG: C } "Register periodic boundary conditions" SCHEDULE PeriodicCarpet_ApplyBC IN Bound...
interpolate.c
#include <assert.h> #include <math.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Parameters.h" #include "util_ErrorCodes.h" #include "util_Table.h" #include "interpolate.h" CCTK_INT PeriodicCarpet_Interpolate (CCTK_POINTER_TO_CONST restrict const cctkGH, C...
Carpet/PeriodicCarpet
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn PeriodicCarpet REQUIRES Carpet CarpetLib
# Interface definition for thorn PeriodicCarpet IMPLEMENTS: PeriodicCarpet INHERITS: grid USES INCLUDE: carpet.hh USES INCLUDE: mpi_string.hh USES INCLUDE: dist.hh CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister CCTK_INT FUNCTION \ ...
# Parameter definitions for thorn PeriodicCarpet BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN periodic "Periodic boundary conditions in all directions" { } "no" BOOLEAN periodic_x "Periodic boundary conditions in x-direction" { } "no" BOOLEAN periodic_y "Periodic bound...
# Schedule definitions for thorn PeriodicCarpet SCHEDULE PeriodicCarpet_ParamCheck AT paramcheck { LANG: C OPTIONS: level } "Register periodic boundary conditions" SCHEDULE PeriodicCarpet_RegisterBC IN SymmetryRegister { LANG: C } "Register periodic boundary conditions" SCHEDULE PeriodicCarpet_ApplyBC IN Bound...
paramcheck.cc
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> extern "C" void PeriodicCarpet_ParamCheck(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; if (periodic and (periodic_x or periodic_y or periodic_z)) { CCTK_PARAMWARN("When PeriodicCarpet::periodic is set, all bound...
Carpet/PeriodicCarpet
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn PeriodicCarpet REQUIRES Carpet CarpetLib
# Interface definition for thorn PeriodicCarpet IMPLEMENTS: PeriodicCarpet INHERITS: grid USES INCLUDE: carpet.hh USES INCLUDE: mpi_string.hh USES INCLUDE: dist.hh CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister CCTK_INT FUNCTION \ ...
# Parameter definitions for thorn PeriodicCarpet BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN periodic "Periodic boundary conditions in all directions" { } "no" BOOLEAN periodic_x "Periodic boundary conditions in x-direction" { } "no" BOOLEAN periodic_y "Periodic bound...
# Schedule definitions for thorn PeriodicCarpet SCHEDULE PeriodicCarpet_ParamCheck AT paramcheck { LANG: C OPTIONS: level } "Register periodic boundary conditions" SCHEDULE PeriodicCarpet_RegisterBC IN SymmetryRegister { LANG: C } "Register periodic boundary conditions" SCHEDULE PeriodicCarpet_ApplyBC IN Bound...
interpolate.h
#ifndef PERIODICCARPET_H #define PERIODICCARPET_H #include "cctk.h" #include "cctk_Arguments.h" CCTK_INT PeriodicCarpet_Interpolate (CCTK_POINTER_TO_CONST restrict const cctkGH, CCTK_INT const N_dims, CCTK_INT const local_interp_handle, ...
Carpet/PeriodicCarpet
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn PeriodicCarpet REQUIRES Carpet CarpetLib
# Interface definition for thorn PeriodicCarpet IMPLEMENTS: PeriodicCarpet INHERITS: grid USES INCLUDE: carpet.hh USES INCLUDE: mpi_string.hh USES INCLUDE: dist.hh CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister CCTK_INT FUNCTION \ ...
# Parameter definitions for thorn PeriodicCarpet BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN periodic "Periodic boundary conditions in all directions" { } "no" BOOLEAN periodic_x "Periodic boundary conditions in x-direction" { } "no" BOOLEAN periodic_y "Periodic bound...
# Schedule definitions for thorn PeriodicCarpet SCHEDULE PeriodicCarpet_ParamCheck AT paramcheck { LANG: C OPTIONS: level } "Register periodic boundary conditions" SCHEDULE PeriodicCarpet_RegisterBC IN SymmetryRegister { LANG: C } "Register periodic boundary conditions" SCHEDULE PeriodicCarpet_ApplyBC IN Bound...
make.code.defn
# Main make.code.defn file for thorn PeriodicCarpet # Source files in this directory SRCS = paramcheck.cc periodic.cc interpolate.c # Subdirectories containing source files SUBDIRS =
Carpet/PeriodicCarpet
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn PeriodicCarpet REQUIRES Carpet CarpetLib
# Interface definition for thorn PeriodicCarpet IMPLEMENTS: PeriodicCarpet INHERITS: grid USES INCLUDE: carpet.hh USES INCLUDE: mpi_string.hh USES INCLUDE: dist.hh CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister CCTK_INT FUNCTION \ ...
# Parameter definitions for thorn PeriodicCarpet BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN periodic "Periodic boundary conditions in all directions" { } "no" BOOLEAN periodic_x "Periodic boundary conditions in x-direction" { } "no" BOOLEAN periodic_y "Periodic bound...
# Schedule definitions for thorn PeriodicCarpet SCHEDULE PeriodicCarpet_ParamCheck AT paramcheck { LANG: C OPTIONS: level } "Register periodic boundary conditions" SCHEDULE PeriodicCarpet_RegisterBC IN SymmetryRegister { LANG: C } "Register periodic boundary conditions" SCHEDULE PeriodicCarpet_ApplyBC IN Bound...
periodic.cc
#include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <vector> #include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <carpet.hh> #include <mpi_string.hh> #include <dist.hh> extern "C" { #include "interpolate.h" } using namespace std; using namespace Carpet...
Carpet/ReductionTest
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn ReductionTest # $Header:$ implements: ReductionTest inherits: GRHydro grid CCTK_REAL center_of_mass_helpers TYPE=GF TIMELEVELS=3 tags='prolongation="none"' { dMx,dMy,dMz } CCTK_REAL center_of_mass TYPE=SCALAR { Mx,My,Mz,Mr }
# Parameter definitions for thorn ReductionTest # $Header:$ shares: grid USES KEYWORD domain
# Schedule definitions for thorn ReductionTest # $Header:$ STORAGE: center_of_mass center_of_mass_helpers[3] SCHEDULE CoM_Local AT CCTK_INITIAL AFTER Whisky_Initial { LANG: C SYNC: center_of_mass_helpers } "Setup integrands for CoM calculation" SCHEDULE CoM_Local AT CCTK_EVOL AFTER MoL_Evolution { LANG: ...
make.code.defn
# Main make.code.defn file for thorn ReductionTest # $Header:$ # Source files in this directory SRCS = CoM.c # Subdirectories containing source files SUBDIRS =
Carpet/ReductionTest
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn ReductionTest # $Header:$ implements: ReductionTest inherits: GRHydro grid CCTK_REAL center_of_mass_helpers TYPE=GF TIMELEVELS=3 tags='prolongation="none"' { dMx,dMy,dMz } CCTK_REAL center_of_mass TYPE=SCALAR { Mx,My,Mz,Mr }
# Parameter definitions for thorn ReductionTest # $Header:$ shares: grid USES KEYWORD domain
# Schedule definitions for thorn ReductionTest # $Header:$ STORAGE: center_of_mass center_of_mass_helpers[3] SCHEDULE CoM_Local AT CCTK_INITIAL AFTER Whisky_Initial { LANG: C SYNC: center_of_mass_helpers } "Setup integrands for CoM calculation" SCHEDULE CoM_Local AT CCTK_EVOL AFTER MoL_Evolution { LANG: ...
CoM.c
#include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "util_Table.h" #include <assert.h> #include <math.h> void CoM_Local(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; int i, j, k, index; int nx = cctk_lsh[0]; int ny = cctk_lsh[1]; int nz = cctk_lsh[2]; ...
Carpet/ReductionTest2
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn ReductionTest2 # $Header:$ implements: ReductionTest2 CCTK_REAL redvars TYPE=GF TIMELEVELS=3 { redvar }
# Parameter definitions for thorn ReductionTest2 # $Header:$ shares: grid USES KEYWORD domain
# Schedule definitions for thorn ReductionTest2 # $Header:$ STORAGE: redvars[3] SCHEDULE CoM2_Local AT CCTK_INITIAL AFTER Whisky_Initial { LANG: C SYNC: redvars } "Setup integrands for CoM calculation" SCHEDULE CoM2_Local AT CCTK_EVOL AFTER MoL_Evolution { LANG: C SYNC: redvars } "Setup integrands for ...
make.code.defn
# Main make.code.defn file for thorn ReductionTest # $Header:$ # Source files in this directory SRCS = CoM.c # Subdirectories containing source files SUBDIRS =
Carpet/ReductionTest2
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn ReductionTest2 # $Header:$ implements: ReductionTest2 CCTK_REAL redvars TYPE=GF TIMELEVELS=3 { redvar }
# Parameter definitions for thorn ReductionTest2 # $Header:$ shares: grid USES KEYWORD domain
# Schedule definitions for thorn ReductionTest2 # $Header:$ STORAGE: redvars[3] SCHEDULE CoM2_Local AT CCTK_INITIAL AFTER Whisky_Initial { LANG: C SYNC: redvars } "Setup integrands for CoM calculation" SCHEDULE CoM2_Local AT CCTK_EVOL AFTER MoL_Evolution { LANG: C SYNC: redvars } "Setup integrands for ...
CoM.c
#include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "util_Table.h" #include <assert.h> #include <math.h> void CoM2_Local(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; int i, j, k, index; int nx = cctk_lsh[0]; int ny = cctk_lsh[1]; int nz = cctk_lsh[2];...
Carpet/ReductionTest3
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn ReductionTest # $Header:$ implements: ReductionTest3 inherits: grid CCTK_REAL myredvar TYPE=GF TIMELEVELS=3 tags='ProlongationParameter="Whisky::Whisky_Prolongation_Type" tensortypealias="Scalar" tensorweight=+1.0 interpolator="matter"' CCTK_REAL center_of_mass_helpers TYPE=GF TIMELE...
# Parameter definitions for thorn ReductionTest # $Header:$ shares: grid USES KEYWORD domain
# Schedule definitions for thorn ReductionTest # $Header:$ STORAGE: center_of_mass center_of_mass_helpers[3] myredvar[3] SCHEDULE CoM3_Local AT CCTK_INITIAL AFTER Whisky_Initial { LANG: C SYNC: center_of_mass_helpers } "Setup integrands for CoM calculation" SCHEDULE CoM3_Local AT CCTK_EVOL AFTER MoL_Evolution...
make.code.defn
# Main make.code.defn file for thorn ReductionTest # $Header:$ # Source files in this directory SRCS = CoM.c # Subdirectories containing source files SUBDIRS =
Carpet/ReductionTest3
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn ReductionTest # $Header:$ implements: ReductionTest3 inherits: grid CCTK_REAL myredvar TYPE=GF TIMELEVELS=3 tags='ProlongationParameter="Whisky::Whisky_Prolongation_Type" tensortypealias="Scalar" tensorweight=+1.0 interpolator="matter"' CCTK_REAL center_of_mass_helpers TYPE=GF TIMELE...
# Parameter definitions for thorn ReductionTest # $Header:$ shares: grid USES KEYWORD domain
# Schedule definitions for thorn ReductionTest # $Header:$ STORAGE: center_of_mass center_of_mass_helpers[3] myredvar[3] SCHEDULE CoM3_Local AT CCTK_INITIAL AFTER Whisky_Initial { LANG: C SYNC: center_of_mass_helpers } "Setup integrands for CoM calculation" SCHEDULE CoM3_Local AT CCTK_EVOL AFTER MoL_Evolution...
CoM.c
#include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "util_Table.h" #include <assert.h> #include <math.h> void CoM3_Local(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; int i, j, k, index; int nx = cctk_lsh[0]; int ny = cctk_lsh[1]; int nz = cctk_lsh[2];...
Carpet/RegridSyncTest
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn RegridSyncTest implements: RegridSyncTest real myregridtestgf type=GF timelevels=3 "This is the regrid test grid function"
# Parameter definitions for thorn RegridSyncTest
# Schedule definitions for thorn RegridSyncTest storage: myregridtestgf[3] schedule RegridSyncTest_setup AT CCTK_INITIAL { LANG: Fortran SYNC: myregridtestgf } "Do something at inital" schedule RegridSyncTest_do_something AT PostRegrid { LANG: Fortran SYNC: myregridtestgf } "Do something at postregrid and t...
make.code.defn
# Main make.code.defn file for thorn RegridSyncTest # Source files in this directory SRCS = regridsynctest.F90 output.c # Subdirectories containing source files SUBDIRS =
Carpet/RegridSyncTest
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn RegridSyncTest implements: RegridSyncTest real myregridtestgf type=GF timelevels=3 "This is the regrid test grid function"
# Parameter definitions for thorn RegridSyncTest
# Schedule definitions for thorn RegridSyncTest storage: myregridtestgf[3] schedule RegridSyncTest_setup AT CCTK_INITIAL { LANG: Fortran SYNC: myregridtestgf } "Do something at inital" schedule RegridSyncTest_do_something AT PostRegrid { LANG: Fortran SYNC: myregridtestgf } "Do something at postregrid and t...
regridsynctest.F90
#include <cctk.h> #include <cctk_Parameters.h> #include <cctk_Arguments.h> #include <cctk_Functions.h> subroutine RegridSyncTest_setup(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_PARAMETERS DECLARE_CCTK_ARGUMENTS myregridtestgf = 0.9d0 end subroutine RegridSyncTest_setup subroutine RegridSyncTest_sync(CCT...
Carpet/RegridSyncTest
https://bitbucket.org/eschnett/carpet.git
# Interface definition for thorn RegridSyncTest implements: RegridSyncTest real myregridtestgf type=GF timelevels=3 "This is the regrid test grid function"
# Parameter definitions for thorn RegridSyncTest
# Schedule definitions for thorn RegridSyncTest storage: myregridtestgf[3] schedule RegridSyncTest_setup AT CCTK_INITIAL { LANG: Fortran SYNC: myregridtestgf } "Do something at inital" schedule RegridSyncTest_do_something AT PostRegrid { LANG: Fortran SYNC: myregridtestgf } "Do something at postregrid and t...
output.c
#include <cctk.h> #include <cctk_Parameters.h> #include <cctk_Arguments.h> void regridsynctest_output(CCTK_ARGUMENTS) { DECLARE_CCTK_PARAMETERS; DECLARE_CCTK_ARGUMENTS; CCTK_OutputVarAsByMethod(cctkGH, "regridsynctest::myregridtestgf", "IOASCII_1D", "myregridtestgf_postregrid"); //...
Carpet/TestCarpetGridInfo
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn TestCarpetGridInfo REQUIRES Carpet
# Interface definition for thorn TestCarpetGridInfo # $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/interface.ccl,v 1.1 2006/07/03 14:41:50 jthorn Exp $ implements: TestCarpetGridInfo uses include: carpet.hh # from Carpet/Carpet
# Parameter definitions for thorn TestCarpetGridInfo # $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/param.ccl,v 1.1 2006/07/03 14:41:50 jthorn Exp $ int N_maps "number of Carpet maps to test" { 0:* :: "any integer >= 0" } 6 Boolean test_local_mode "should we test grid info in local mode as well?" { } false
# Schedule definitions for thorn TestCarpetGridInfo # $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/schedule.ccl,v 1.1 2006/07/03 14:41:50 jthorn Exp $ schedule TestCarpetGridInfo_test \ at BASEGRID \ after SpatialCoordinates { LANG: C OPTIONS: level } "test grid info"
make.code.defn
# Main make.code.defn file for thorn TestCarpetGridInfo # $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/src/make.code.defn,v 1.1 2006/07/03 14:41:50 jthorn Exp $ # Source files in this directory SRCS = test.cc # Subdirectories containing source files SUBDIRS =
Carpet/TestCarpetGridInfo
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn TestCarpetGridInfo REQUIRES Carpet
# Interface definition for thorn TestCarpetGridInfo # $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/interface.ccl,v 1.1 2006/07/03 14:41:50 jthorn Exp $ implements: TestCarpetGridInfo uses include: carpet.hh # from Carpet/Carpet
# Parameter definitions for thorn TestCarpetGridInfo # $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/param.ccl,v 1.1 2006/07/03 14:41:50 jthorn Exp $ int N_maps "number of Carpet maps to test" { 0:* :: "any integer >= 0" } 6 Boolean test_local_mode "should we test grid info in local mode as well?" { } false
# Schedule definitions for thorn TestCarpetGridInfo # $Header: /numrelcvs/ThornburgCVS/TestCarpetGridInfo/schedule.ccl,v 1.1 2006/07/03 14:41:50 jthorn Exp $ schedule TestCarpetGridInfo_test \ at BASEGRID \ after SpatialCoordinates { LANG: C OPTIONS: level } "test grid info"
test.cc
#include <cstdio> #include <cassert> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "carpet.hh" using std::printf; #define then /* empty */ // prototypes namespace { void do_singlemap_stuff(cGH *GH, int map_number, bool test_local_mode); void do_local_stuff(cGH *GH, int map_numb...
Carpet/TestLoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn TestLoopControl REQUIRES LoopControl
# Interface definition for thorn TestLoopControl IMPLEMENTS: TestLoopControl INHERITS: grid USES INCLUDE HEADER: loopcontrol.h # Convenient way to determine boundary sizes CCTK_INT FUNCTION GetBoundarySizesAndTypes \ (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN size, \ CCTK_INT OUT ARRAY bndsize, \ ...
# Parameter definitions for thorn TestLoopControl
# Schedule definitions for thorn TestLoopControl STORAGE: csums fsums pointtypes SCHEDULE TestLoopControlPointwise AT initial { LANG: C } "Test loop iterators pointwise" SCHEDULE TestLoopControlC AT initial { LANG: C } "Test loop iterators" SCHEDULE TestLoopControlFortran AT initial { LANG: Fortran } "Test lo...
TestLoopC.c
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <loopcontrol.h> void TestLoopControlC(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; switch (cctk_dim) { case 1: { /* 1D */ *csum_all = 0.0; CCTK_LOOP1_ALL(loop1_all, cctkGH, i) { int c...
Carpet/TestLoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn TestLoopControl REQUIRES LoopControl
# Interface definition for thorn TestLoopControl IMPLEMENTS: TestLoopControl INHERITS: grid USES INCLUDE HEADER: loopcontrol.h # Convenient way to determine boundary sizes CCTK_INT FUNCTION GetBoundarySizesAndTypes \ (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN size, \ CCTK_INT OUT ARRAY bndsize, \ ...
# Parameter definitions for thorn TestLoopControl
# Schedule definitions for thorn TestLoopControl STORAGE: csums fsums pointtypes SCHEDULE TestLoopControlPointwise AT initial { LANG: C } "Test loop iterators pointwise" SCHEDULE TestLoopControlC AT initial { LANG: C } "Test loop iterators" SCHEDULE TestLoopControlFortran AT initial { LANG: Fortran } "Test lo...
TestLoopFortran.F90
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" #include "loopcontrol.h" subroutine TestLoopControlFortran_all(CCTK_ARGUMENTS) use loopcontrol implicit none DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_LOOP3_ALL_DECL...
Carpet/TestLoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn TestLoopControl REQUIRES LoopControl
# Interface definition for thorn TestLoopControl IMPLEMENTS: TestLoopControl INHERITS: grid USES INCLUDE HEADER: loopcontrol.h # Convenient way to determine boundary sizes CCTK_INT FUNCTION GetBoundarySizesAndTypes \ (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN size, \ CCTK_INT OUT ARRAY bndsize, \ ...
# Parameter definitions for thorn TestLoopControl
# Schedule definitions for thorn TestLoopControl STORAGE: csums fsums pointtypes SCHEDULE TestLoopControlPointwise AT initial { LANG: C } "Test loop iterators pointwise" SCHEDULE TestLoopControlC AT initial { LANG: C } "Test loop iterators" SCHEDULE TestLoopControlFortran AT initial { LANG: Fortran } "Test lo...
make.code.defn
# Main make.code.defn file for thorn TestLoopControl # Source files in this directory SRCS = TestLoopPointwise.cc TestLoopC.c TestLoopFortran.F90 # Subdirectories containing source files SUBDIRS =
Carpet/TestLoopControl
https://bitbucket.org/eschnett/carpet.git
# Configuration definition for thorn TestLoopControl REQUIRES LoopControl
# Interface definition for thorn TestLoopControl IMPLEMENTS: TestLoopControl INHERITS: grid USES INCLUDE HEADER: loopcontrol.h # Convenient way to determine boundary sizes CCTK_INT FUNCTION GetBoundarySizesAndTypes \ (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN size, \ CCTK_INT OUT ARRAY bndsize, \ ...
# Parameter definitions for thorn TestLoopControl
# Schedule definitions for thorn TestLoopControl STORAGE: csums fsums pointtypes SCHEDULE TestLoopControlPointwise AT initial { LANG: C } "Test loop iterators pointwise" SCHEDULE TestLoopControlC AT initial { LANG: C } "Test loop iterators" SCHEDULE TestLoopControlFortran AT initial { LANG: Fortran } "Test lo...
TestLoopPointwise.cc
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <stdio.h> #include <loopcontrol.h> static void TestLoopControlPointwise_All(CCTK_ARGUMENTS); static void TestLoopControlPointwise_Int(CCTK_ARGUMENTS); static void TestLoopControlPointwise_Bnd(CCTK_ARGUMENTS); static void TestLoopCont...
Carpet/Timers
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn Timers PROVIDES Timers { } # This is necessary for some convenient communication routines REQUIRES CarpetLib
# Interface definition for thorn Timers IMPLEMENTS: Timers INCLUDE HEADER: CactusTimer.hh IN CactusTimer.hh INCLUDE HEADER: CactusTimerSet.hh IN CactusTimerSet.hh INCLUDE HEADER: Timer.hh IN Timer.hh INCLUDE HEADER: TimerTree.hh IN TimerTree.hh # Check whether existing output files should be truncated or not CCTK_...
# Parameter definitions for thorn Timers SHARES: IO USES STRING out_dir PRIVATE: BOOLEAN verbose "Output (debug) messages when a timer is started or stopped" STEERABLE=always { } "no" BOOLEAN disable_cactus_timer_set "Disable Cactus timer set" STEERABLE=recover { } "no" BOOLEAN disable_timer_trees "Disable time...
# Schedule definitions for thorn Timers SCHEDULE Timer_Startup AT startup BEFORE Driver_Startup { LANG: C } "Prepare hierarchical timers" SCHEDULE Timer_Shutdown AT shutdown AFTER Driver_Shutdown { LANG: C } "Prepare hierarchical timers"
Timer.cc
#include <cassert> #include <cctk.h> #include <cctk_Parameters.h> #include <Timer.hh> #include <TimerTree.hh> namespace Timers { using namespace std; /********************************************************************* Timer *********************************************************************/ TimerTree main_...
Carpet/Timers
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn Timers PROVIDES Timers { } # This is necessary for some convenient communication routines REQUIRES CarpetLib
# Interface definition for thorn Timers IMPLEMENTS: Timers INCLUDE HEADER: CactusTimer.hh IN CactusTimer.hh INCLUDE HEADER: CactusTimerSet.hh IN CactusTimerSet.hh INCLUDE HEADER: Timer.hh IN Timer.hh INCLUDE HEADER: TimerTree.hh IN TimerTree.hh # Check whether existing output files should be truncated or not CCTK_...
# Parameter definitions for thorn Timers SHARES: IO USES STRING out_dir PRIVATE: BOOLEAN verbose "Output (debug) messages when a timer is started or stopped" STEERABLE=always { } "no" BOOLEAN disable_cactus_timer_set "Disable Cactus timer set" STEERABLE=recover { } "no" BOOLEAN disable_timer_trees "Disable time...
# Schedule definitions for thorn Timers SCHEDULE Timer_Startup AT startup BEFORE Driver_Startup { LANG: C } "Prepare hierarchical timers" SCHEDULE Timer_Shutdown AT shutdown AFTER Driver_Shutdown { LANG: C } "Prepare hierarchical timers"
make.code.defn
# Main make.code.defn file for thorn Timers # Source files in this directory SRCS = CactusTimer.cc CactusTimerSet.cc Timer.cc TimerTree.cc # Subdirectories containing source files SUBDIRS =
Carpet/Timers
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn Timers PROVIDES Timers { } # This is necessary for some convenient communication routines REQUIRES CarpetLib
# Interface definition for thorn Timers IMPLEMENTS: Timers INCLUDE HEADER: CactusTimer.hh IN CactusTimer.hh INCLUDE HEADER: CactusTimerSet.hh IN CactusTimerSet.hh INCLUDE HEADER: Timer.hh IN Timer.hh INCLUDE HEADER: TimerTree.hh IN TimerTree.hh # Check whether existing output files should be truncated or not CCTK_...
# Parameter definitions for thorn Timers SHARES: IO USES STRING out_dir PRIVATE: BOOLEAN verbose "Output (debug) messages when a timer is started or stopped" STEERABLE=always { } "no" BOOLEAN disable_cactus_timer_set "Disable Cactus timer set" STEERABLE=recover { } "no" BOOLEAN disable_timer_trees "Disable time...
# Schedule definitions for thorn Timers SCHEDULE Timer_Startup AT startup BEFORE Driver_Startup { LANG: C } "Prepare hierarchical timers" SCHEDULE Timer_Shutdown AT shutdown AFTER Driver_Shutdown { LANG: C } "Prepare hierarchical timers"
CactusTimerSet.hh
#ifndef CACTUSTIMERSET_HH #define CACTUSTIMERSET_HH #include <iostream> #include <set> #include <cctk.h> #include "CactusTimer.hh" namespace Timers { class CactusTimerSet; extern CactusTimerSet timerSet; using namespace std; // A set of timers class CactusTimerSet { typedef set<CactusTimer *> timers_t; timer...
Carpet/Timers
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn Timers PROVIDES Timers { } # This is necessary for some convenient communication routines REQUIRES CarpetLib
# Interface definition for thorn Timers IMPLEMENTS: Timers INCLUDE HEADER: CactusTimer.hh IN CactusTimer.hh INCLUDE HEADER: CactusTimerSet.hh IN CactusTimerSet.hh INCLUDE HEADER: Timer.hh IN Timer.hh INCLUDE HEADER: TimerTree.hh IN TimerTree.hh # Check whether existing output files should be truncated or not CCTK_...
# Parameter definitions for thorn Timers SHARES: IO USES STRING out_dir PRIVATE: BOOLEAN verbose "Output (debug) messages when a timer is started or stopped" STEERABLE=always { } "no" BOOLEAN disable_cactus_timer_set "Disable Cactus timer set" STEERABLE=recover { } "no" BOOLEAN disable_timer_trees "Disable time...
# Schedule definitions for thorn Timers SCHEDULE Timer_Startup AT startup BEFORE Driver_Startup { LANG: C } "Prepare hierarchical timers" SCHEDULE Timer_Shutdown AT shutdown AFTER Driver_Shutdown { LANG: C } "Prepare hierarchical timers"
CactusTimer.hh
#ifndef CACTUSTIMER_HH #define CACTUSTIMER_HH #include <cctk.h> #include <iostream> #include <list> #include <string> #include <utility> #include <vector> namespace Timers { /** The CactusTimer class wraps the Cactus timer mechanism. All times are returned as doubles for now. */ class CactusTimer { int handl...
Carpet/Timers
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn Timers PROVIDES Timers { } # This is necessary for some convenient communication routines REQUIRES CarpetLib
# Interface definition for thorn Timers IMPLEMENTS: Timers INCLUDE HEADER: CactusTimer.hh IN CactusTimer.hh INCLUDE HEADER: CactusTimerSet.hh IN CactusTimerSet.hh INCLUDE HEADER: Timer.hh IN Timer.hh INCLUDE HEADER: TimerTree.hh IN TimerTree.hh # Check whether existing output files should be truncated or not CCTK_...
# Parameter definitions for thorn Timers SHARES: IO USES STRING out_dir PRIVATE: BOOLEAN verbose "Output (debug) messages when a timer is started or stopped" STEERABLE=always { } "no" BOOLEAN disable_cactus_timer_set "Disable Cactus timer set" STEERABLE=recover { } "no" BOOLEAN disable_timer_trees "Disable time...
# Schedule definitions for thorn Timers SCHEDULE Timer_Startup AT startup BEFORE Driver_Startup { LANG: C } "Prepare hierarchical timers" SCHEDULE Timer_Shutdown AT shutdown AFTER Driver_Shutdown { LANG: C } "Prepare hierarchical timers"
TimerTree.cc
/* * * The MIT License * * Copyright (c) 1997-2010 Center for the Simulation of Accidental Fires and * Explosions (CSAFE), and Scientific Computing and Imaging Institute (SCI), * University of Utah. * * License for the specific language governing rights and limitations under * Permission is hereby granted, fr...
Carpet/Timers
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn Timers PROVIDES Timers { } # This is necessary for some convenient communication routines REQUIRES CarpetLib
# Interface definition for thorn Timers IMPLEMENTS: Timers INCLUDE HEADER: CactusTimer.hh IN CactusTimer.hh INCLUDE HEADER: CactusTimerSet.hh IN CactusTimerSet.hh INCLUDE HEADER: Timer.hh IN Timer.hh INCLUDE HEADER: TimerTree.hh IN TimerTree.hh # Check whether existing output files should be truncated or not CCTK_...
# Parameter definitions for thorn Timers SHARES: IO USES STRING out_dir PRIVATE: BOOLEAN verbose "Output (debug) messages when a timer is started or stopped" STEERABLE=always { } "no" BOOLEAN disable_cactus_timer_set "Disable Cactus timer set" STEERABLE=recover { } "no" BOOLEAN disable_timer_trees "Disable time...
# Schedule definitions for thorn Timers SCHEDULE Timer_Startup AT startup BEFORE Driver_Startup { LANG: C } "Prepare hierarchical timers" SCHEDULE Timer_Shutdown AT shutdown AFTER Driver_Shutdown { LANG: C } "Prepare hierarchical timers"
CactusTimerSet.cc
#include <cassert> #include <cstdio> #include <cstring> #include <list> #include <cctk.h> #include <cctk_Parameters.h> #include <util_String.h> #if HAVE_UNISTD_H #include <fcntl.h> #include <unistd.h> #endif #include <defs.hh> #include <CactusTimer.hh> #include <CactusTimerSet.hh> #include <Timer.hh> #include <Time...
Carpet/Timers
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn Timers PROVIDES Timers { } # This is necessary for some convenient communication routines REQUIRES CarpetLib
# Interface definition for thorn Timers IMPLEMENTS: Timers INCLUDE HEADER: CactusTimer.hh IN CactusTimer.hh INCLUDE HEADER: CactusTimerSet.hh IN CactusTimerSet.hh INCLUDE HEADER: Timer.hh IN Timer.hh INCLUDE HEADER: TimerTree.hh IN TimerTree.hh # Check whether existing output files should be truncated or not CCTK_...
# Parameter definitions for thorn Timers SHARES: IO USES STRING out_dir PRIVATE: BOOLEAN verbose "Output (debug) messages when a timer is started or stopped" STEERABLE=always { } "no" BOOLEAN disable_cactus_timer_set "Disable Cactus timer set" STEERABLE=recover { } "no" BOOLEAN disable_timer_trees "Disable time...
# Schedule definitions for thorn Timers SCHEDULE Timer_Startup AT startup BEFORE Driver_Startup { LANG: C } "Prepare hierarchical timers" SCHEDULE Timer_Shutdown AT shutdown AFTER Driver_Shutdown { LANG: C } "Prepare hierarchical timers"
CactusTimer.cc
#include <cassert> #include <cstdio> #include <cstring> #include <iomanip> #include <list> #include <string> #include <utility> #include <vector> #include <cctk.h> #include <cctk_Parameters.h> #include <util_String.h> #if HAVE_UNISTD_H #include <fcntl.h> #include <unistd.h> #endif #include <defs.hh> #include "Cactu...
Carpet/Timers
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn Timers PROVIDES Timers { } # This is necessary for some convenient communication routines REQUIRES CarpetLib
# Interface definition for thorn Timers IMPLEMENTS: Timers INCLUDE HEADER: CactusTimer.hh IN CactusTimer.hh INCLUDE HEADER: CactusTimerSet.hh IN CactusTimerSet.hh INCLUDE HEADER: Timer.hh IN Timer.hh INCLUDE HEADER: TimerTree.hh IN TimerTree.hh # Check whether existing output files should be truncated or not CCTK_...
# Parameter definitions for thorn Timers SHARES: IO USES STRING out_dir PRIVATE: BOOLEAN verbose "Output (debug) messages when a timer is started or stopped" STEERABLE=always { } "no" BOOLEAN disable_cactus_timer_set "Disable Cactus timer set" STEERABLE=recover { } "no" BOOLEAN disable_timer_trees "Disable time...
# Schedule definitions for thorn Timers SCHEDULE Timer_Startup AT startup BEFORE Driver_Startup { LANG: C } "Prepare hierarchical timers" SCHEDULE Timer_Shutdown AT shutdown AFTER Driver_Shutdown { LANG: C } "Prepare hierarchical timers"
TimerTree.hh
/* * * The MIT License * * Copyright (c) 1997-2010 Center for the Simulation of Accidental Fires and * Explosions (CSAFE), and Scientific Computing and Imaging Institute (SCI), * University of Utah. * * License for the specific language governing rights and limitations under * Permission is hereby granted, fr...
Carpet/Timers
https://bitbucket.org/eschnett/carpet.git
# Configuration definitions for thorn Timers PROVIDES Timers { } # This is necessary for some convenient communication routines REQUIRES CarpetLib
# Interface definition for thorn Timers IMPLEMENTS: Timers INCLUDE HEADER: CactusTimer.hh IN CactusTimer.hh INCLUDE HEADER: CactusTimerSet.hh IN CactusTimerSet.hh INCLUDE HEADER: Timer.hh IN Timer.hh INCLUDE HEADER: TimerTree.hh IN TimerTree.hh # Check whether existing output files should be truncated or not CCTK_...
# Parameter definitions for thorn Timers SHARES: IO USES STRING out_dir PRIVATE: BOOLEAN verbose "Output (debug) messages when a timer is started or stopped" STEERABLE=always { } "no" BOOLEAN disable_cactus_timer_set "Disable Cactus timer set" STEERABLE=recover { } "no" BOOLEAN disable_timer_trees "Disable time...
# Schedule definitions for thorn Timers SCHEDULE Timer_Startup AT startup BEFORE Driver_Startup { LANG: C } "Prepare hierarchical timers" SCHEDULE Timer_Shutdown AT shutdown AFTER Driver_Shutdown { LANG: C } "Prepare hierarchical timers"
Timer.hh
#ifndef TIMER_HH #define TIMER_HH #include <iostream> #include <list> #include <cctk.h> #include <TimerTree.hh> namespace Timers { /** This class allows the user to instrument their code with named timers which can then be later queried to determine the amount of time spent in the code between "start" and...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
CT_Analytic_Lump_Calc.cc
/* File produced by Kranc */ #define KRANC_C #include <algorithm> #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "Kranc.hh" #include "Differencing.h" #include "loopcontrol.h" namespa...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
CT_Analytic_ExpandingLattice_Calc.cc
/* File produced by Kranc */ #define KRANC_C #include <algorithm> #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "Kranc.hh" #include "Differencing.h" #include "loopcontrol.h" namespa...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
Kranc.cc
/* Copyright 2014 Ian Hinder This file is part of Kranc. Kranc is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. K...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
CT_Analytic_ExactBoundary.cc
/* File produced by Kranc */ #define KRANC_C #include <algorithm> #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "Kranc.hh" #include "Differencing.h" #include "loopcontrol.h" namespa...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
Kranc.hh
#ifndef KRANC_HH #define KRANC_HH #include <cmath> #include <math.h> #include <sys/time.h> #include <cctk.h> namespace CT_Analytic { /********************************************************************* * Types *********************************************************************/ struct KrancData { // Actual...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
Differencing.h
#ifndef KRANC_DIFF_FUNCTIONS # define PDstandardNth1(u) ((-8*KRANC_GFOFFSET3D(u,-1,0,0) + 8*KRANC_GFOFFSET3D(u,1,0,0) + KRANC_GFOFFSET3D(u,-2,0,0) - KRANC_GFOFFSET3D(u,2,0,0))*p1o12dx) #else # define PDstandardNth1(u) (PDstandardNth1_impl(u,p1o12dx,cdj,cdk)) static CCTK_REAL PDstandardNth1_impl(const CCTK_REAL* restr...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
RegisterMoL.cc
/* File produced by Kranc */ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" extern "C" void CT_Analytic_RegisterVars(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; CCTK_INT ierr CCTK_ATTRIBUTE_UNUSED = 0; /* Register all the evolved grid functions with MoL *...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
make.code.defn
# File produced by Kranc SRCS = Boundaries.cc CT_Analytic_BY_Calc.cc CT_Analytic_ExactBoundary.cc CT_Analytic_Exact_Calc.cc CT_Analytic_ExpandingLattice_Calc.cc CT_Analytic_LumpBoundary.cc CT_Analytic_Lump_Calc.cc CT_Analytic_Poisson_Calc.cc Kranc.cc RegisterMoL.cc RegisterSymmetries.cc Startup.cc
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
CT_Analytic_BY_Calc.cc
/* File produced by Kranc */ #define KRANC_C #include <algorithm> #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "Kranc.hh" #include "Differencing.h" #include "loopcontrol.h" namespa...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
CT_Analytic_LumpBoundary.cc
/* File produced by Kranc */ #define KRANC_C #include <algorithm> #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "Kranc.hh" #include "Differencing.h" #include "loopcontrol.h" namespa...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
CT_Analytic_Poisson_Calc.cc
/* File produced by Kranc */ #define KRANC_C #include <algorithm> #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "Kranc.hh" #include "Differencing.h" #include "loopcontrol.h" namespa...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
RegisterSymmetries.cc
/* File produced by Kranc */ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "Symmetry.h" extern "C" void CT_Analytic_RegisterSymmetries(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; /* array holding symmetry definitions */ int sym[3]; /* Regis...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
Startup.cc
/* File produced by Kranc */ #include "cctk.h" extern "C" int CT_Analytic_Startup(void) { const char* banner CCTK_ATTRIBUTE_UNUSED = "CT_Analytic"; CCTK_RegisterBanner(banner); return 0; }
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
Boundaries.cc
/* File produced by Kranc */ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Faces.h" #include "util_Table.h" #include "Symmetry.h" /* the boundary treatment is split into 3 steps: */ /* 1. excision */ /* 2. symmetries ...
CTThorns/CT_Analytic
https://bitbucket.org/eloisa/ctthorns.git
# File produced by Kranc REQUIRES GenericFD OPTIONAL LoopControl { }
# File produced by Kranc implements: CT_Analytic inherits: Boundary GenericFD Grid USES INCLUDE: loopcontrol.h USES INCLUDE: Symmetry.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION MoLRegisterEvolved(CCTK_INT IN EvolvedIndex, CCTK_INT IN RHSIndex) USES FUNCTION MoLRegisterEvolved SUBROUTINE Diff_coeff(CCTK_POINT...
# File produced by Kranc shares: GenericFD USES CCTK_INT assume_stress_energy_state shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_ArrayEvolved_Vars restricted: CCTK_INT verbose "verbose" STEERABLE=ALWAYS { *:* :: "" } 0 restricted: CCTK_INT other_timelevels "Number of active t...
# File produced by Kranc STORAGE: CT_testinipsi[other_timelevels] STORAGE: CT_testinixx[other_timelevels] STORAGE: CT_testinixy[other_timelevels] STORAGE: CT_testinixz[other_timelevels] STORAGE: CT_epsi[other_timelevels] STORAGE: CT_elaplacian[other_timelevels] STORAGE: CT_testcxx[other_timelevels] STORAGE: CT_...
CT_Analytic_Exact_Calc.cc
/* File produced by Kranc */ #define KRANC_C #include <algorithm> #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "Kranc.hh" #include "Differencing.h" #include "loopcontrol.h" namespa...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_RelaxPsi.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "cctk_Schedule.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" using namespace Carpet; extern "C" void CT_RelaxPsi(CCTK_ARGUMENTS, ...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_InitializeAuxiliaries.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void FirstDerivative(CCTK_REAL *gfunc, struct stencil stnc, int nequation, ...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_RelaxError.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "cctk_Schedule.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" using namespace Carpet; extern "C" void CT_RelaxError(CCTK_ARGUMENTS, ...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_CalcErrResidual.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void CT_CalcErrResidual(CCTK_ARGUMENTS, CCTK_INT step, CCTK_INT output, CCTK_REAL *norm) { ...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_PopulatePointerStruct.cc
#include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void CT_PopulatePointerStruct(CCTK_ARGUMENTS, struct coeffptr *cptr) { ...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_EnforceInt.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void CT_EnforceInt(CCTK_ARGUMENTS, CCTK_REAL *value) { BEGIN_MAP_LOOP(cctkGH,CCTK_GF) { ...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_CompareToExact.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void CT_CompareToExact(CCTK_ARGUMENTS, CCTK_INT outdated_psi) { DECLARE_CCTK_PARAMETERS; ...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_InitializeConstants.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void CT_InitializeConstants(CCTK_ARGUMENTS) { BEGIN_REFLEVEL_LOOP(cctkGH) { BEGIN_MAP...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_InitializeCoefficients.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void CT_InitializeCoefficients(int sindex, int nequation, struct coeffptr *cptr, struct ste...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_Reset.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void CT_Reset(CCTK_ARGUMENTS, char *varName, CCTK_REAL *resetvalue, CCTK_INT relative) { ...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_RestoreError.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void CT_RestoreError(CCTK_ARGUMENTS) { BEGIN_MAP_LOOP(cctkGH,CCTK_GF) { BEGIN_COMPONE...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_CopyResidual.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void CT_CopyResidual(CCTK_ARGUMENTS, CCTK_INT nequation) { BEGIN_MAP_LOOP(cctkGH,CCTK_GF)...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
CT_UpdateBoundaries.cc
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "cctk_Schedule.h" #include "carpet.hh" #include "loopcontrol.h" #include "Carpet/Carpet/src/modes.hh" #include "CT_MultiLevel.hh" extern "C" void CT_UpdateBoundaries(CCTK_ARGUMENTS, const char *varname) { ...
CTThorns/CT_MultiLevel
https://bitbucket.org/eloisa/ctthorns.git
REQUIRES Carpet MPI
# IMPLEMENTS: CT_MultiLevel INHERITS: Boundary INHERITS: Grid USES INCLUDE: Symmetry.h USES INCLUDE: loopcontrol.h USES INCLUDE: Boundary.h CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, CCTK_STRING IN group_name, CCT...
# shares: admbase EXTENDS KEYWORD initial_data { "CT_MultiLevel" :: "Initial data from this solver" } private: # Algorithm parameters KEYWORD mode "Which equation should we solve?" { "generic" :: "Generic elliptic operator, to be defined via the coefficients" "constraints" :: "The GR constraints" } "generic" K...
# STORAGE: psi[3] STORAGE: residual[3] err[3] STORAGE: coeffs[3] STORAGE: copies[1] STORAGE: cell_integral[1] STORAGE: auxiliaries[1] STORAGE: rhs[1] STORAGE: constants[1] schedule CT_MultiLevel AT CCTK_INITIAL after CT_ScalarField_setConfRho { LANG: C OPTIONS: GLOBAL-LATE } "Main MultiLevel function"
make.code.defn
# Main make.code.defn file for thorn CT_MultiLevel # Source files in this directory SRCS = CT_MultiLevel.cc \ CT_V.cc \ CT_InitializePsi.cc \ CT_InitializeError.cc \ CT_InitializeCoefficients.cc \ CT_InitializeResidual.cc \ CT_InitializeConstants.cc \ CT_InitializeAuxil...