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
CactusNumerical/LocalReduce
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn LocalReduce # $Header$ Implements: LocalReduce
# Parameter definitions for thorn LocalReduce # $Header$
# Schedule definitions for thorn LocalReduce # $Header$ schedule LocalReduce_Startup at STARTUP { LANG:C } "Startup routine"
SumFunctions.c
/*@@ @file SumFunctions.c @date @author Tom Goodale, Yaakoub Y El Khamra @desc The functions responsible for performing the actual iteration. Having cascaded switch statements broke some compilers. @enddesc @version $Id$ @@*/ #include "cctk.h" #include "l...
CactusNumerical/LocalReduce
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn LocalReduce # $Header$ Implements: LocalReduce
# Parameter definitions for thorn LocalReduce # $Header$
# Schedule definitions for thorn LocalReduce # $Header$ schedule LocalReduce_Startup at STARTUP { LANG:C } "Startup routine"
Startup.c
/*@@ @file Startup.c @date @author @desc Startup routines for LocalReduce. @enddesc @version $Id$ @@*/ #include "cctk.h" #include "local_reductions.h" static const char *rcsid="$Id$"; CCTK_FILEVERSION(CactusBase_LocalReduce_Startup_c); /* prototypes of routines def...
CactusNumerical/LocalReduce
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn LocalReduce # $Header$ Implements: LocalReduce
# Parameter definitions for thorn LocalReduce # $Header$
# Schedule definitions for thorn LocalReduce # $Header$ schedule LocalReduce_Startup at STARTUP { LANG:C } "Startup routine"
Norm3_Functions.h
/*@@ @header Norm3_Functions.h @date @author Tom Goodale, Yaakoub Y El Khamra @desc Prototypes for Norm3 reduction operators @enddesc @version $Header$ @@*/ #ifndef _Norm3_FUNCTIONS_H_ #define _Norm3_FUNCTIONS_H_ #include "cctk.h" #ifdef __cplusplus extern "C" { #endif...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
InitialCopy.c
/*@@ @file InitialCopy.c @date Sun May 26 04:43:06 2002 @author Ian Hawke @desc Performs the initial copy from the previous timelevel to the current. This is required because the driver has rotated the timelevels, but the physics thorns are expecting data in the current. @endd...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
ParamCheck.c
/*@@ @file ParamCheck.c @date Mon May 20 09:50:55 2002 @author Ian Hawke @desc Basic parameter checking for thorn MoL. @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "util_ErrorCodes.h" #include "util_Table.h"...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
SetTime.c
/*@@ @file SetTime.c @date Mon May 20 09:45:45 2002 @author Ian Hawke @desc Sets the time and dt depending on the ODE method and position in the loop. @enddesc @version $Header$ @@*/ #include <stdlib.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
GenericRK.c
/*@@ @file GenericRK.c @date Sun May 26 03:47:15 2002 @author Ian Hawke @desc This routine performs a generic Runge-Kutta type integration given the set of coefficients defined in the RKAlphaCoefficients and RKBetaCoefficients arrays. See the article by Shu referenced in the docum...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
Operators.h
#ifndef OPERATORS_H #define OPERATORS_H #include <cctk.h> CCTK_INT MoL_LinearCombination(cGH const *const cctkGH, CCTK_INT const var, CCTK_INT const rl, CCTK_INT const tl, CCTK_REAL const scale, CCTK_I...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
ChangeType.c
/*@@ @file ChangeType.c @date Thu May 30 16:16:40 2002 @author Ian Hawke @desc The external functions called (via function aliasing) by physics thorns to tell MoL that they want these GFs to be treated as a different type to the original declaration. @enddesc @version $Heade...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
ScratchSpace.c
/*@@ @file ScratchSpace.c @date Tue Jul 10 11:26:48 PDT 2012 @author Roland Haas @desc Allocates and deallocates memory for scratch levels. @enddesc @version $Header$ @@*/ #include <stdlib.h> #include <stdio.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RK2.c
/*@@ @file RK2.c @date Sun May 26 04:13:45 2002 @author Ian Hawke @desc A specialized second order Runge-Kutta time integrator. This is the integrator that Shu refers to as the optimal TVD second order method (see reference in documentation). It is equivalent to Heun's predictor-...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
MoL.h
/*@@ @file MoL.h @date Thu Jun 13 22:17:32 2002 @author Ian Hawke @desc A header file with the definitions of the functions to be called by other thorns. This will exist until the function aliasing is sorted out. @enddesc @@*/ #ifdef __cplusplus extern "C" { #endif #ifndef MO...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RK2-central.c
/*@@ @file RK2-central.c @date 2016-01-01 @author Erik Schnetter @desc A specialized second order Runge-Kutta time integrator. This is the "central" RK2 method where the first step is taken to 1/2 the final step size. @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arg...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RK65.c
/*@@ @file RK65.c @date Sun May 26 03:47:15 2002 @author Peter Diener (based on RK45.c by Ian Hawke) @desc RK65 following P. J. Prince and J. R. Dormand Journal of Computational and Applied Mathematics, volume 7, no 1, 1981 @enddesc @version $Header$ @@*/ #include "cctk.h" #i...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
Euler.c
/*@@ @file Euler.c @date 2012-12-05 @author Erik Schnetter @desc An explicit Euler time integrator. This method is unstable in most cases, but is sometimes useful for debugging. @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Param...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
StepSize.c
/*@@ @file StepSize.c @date Tue Sep 07 2004 @author Erik Schnetter @desc Control the time step size. @enddesc @version $Header$ @@*/ #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Paramet...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
make.code.defn
# Main make.code.defn file for thorn MoL # $Header$ # Source files in this directory SRCS = AB.c \ ChangeType.c \ Counter.c \ Euler.c \ GenericRK.c \ ICN.c \ IndexArrays.c \ InitialCopy.c \ Operators.c \ ParamCheck.c \ ScratchSpace.c \ RK2.c \ RK2-central.c \ RK2-MR-2_1.c \ RK4-MR-2_1.c \ RK4-RK2.c \ ...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
IndexArrays.c
/*@@ @file IndexArrays.c @date Mon Jun 3 13:15:30 2002 @author Ian Hawke @desc Routines for dealing with the index arrays in @seefile ExternalVariables.h @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "uti...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RK4.c
/*@@ @file RK4.c @date Fri July 14, 2006 @author Yosef Zlochower @desc A routine to perform RK4 evolution. Mostly copied from genericRK.c @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "ExternalVariables.h"...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RK2-MR-2_1.c
/*@@ @file RK2-MR-2_1.c @date 2012-03-25 @author Christian Reisswig @desc A routine to perform RK2 2:1 MR evolution. Mostly copied from genericRK.c @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include <stdio.h> #...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RK45.c
/*@@ @file RK45.c @date Sun May 26 03:47:15 2002 @author Ian Hawke @desc RK45 following Forsythe, Malcolm and Moler (Computer Methods for Mathematical Computations). @enddesc @version $Header$ @@*/ #include "ExternalVariables.h" #include "Operators.h" #include <cctk.h> #incl...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
Counter.c
/*@@ @file Counter.c @date Mon May 20 09:52:33 2002 @author Ian Hawke @desc Routines setting and altering the loop counter. @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" /* #include "carpet.h" */ static const char *r...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
Operators.c
#include "Operators.h" #include <cctk.h> #include <cctk_Parameters.h> #include <assert.h> #include <complex.h> #include <stddef.h> #include <stdlib.h> /* These are MoL's low-level operators. If they are overloaded as aliased functions, these aliased functions are called; otherwise, a default implementation is ...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RK4-RK2.c
/*@@ @file RK4-RK2.c @date 2012-03-25 @author Christian Reisswig @desc A routine to perform homegrown RK4RK2 evolution. Mostly copied from genericRK.c @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include <stdio.h...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RK87.c
/*@@ @file RK87.c @date Sun May 26 03:47:15 2002 @author Peter Diener (based on RK45.c by Ian Hawke) @desc RK87 following P. J. Prince and J. R. Dormand Journal of Computational and Applied Mathematics, volume 7, no 1, 1981 @enddesc @version $Header$ @@*/ #include "cctk.h" #i...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
ExternalVariables.h
/*@@ @file ExternalVariables.h @date Wed May 22 02:32:10 2002 @author Ian Hawke @desc The header file containing the local variables used across routines. These are the arrays containing GF indexes for all types of variables, and the number of each type of variable currently in use (...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
SandR.c
/*@@ @file SandR.c @date Sun May 26 03:35:58 2002 @author Ian Hawke @desc Restores the Save and Restore variables to their original positions. @enddesc @version $Header$ @@*/ #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #includ...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
MoLFunctions.h
/*@@ @file MoLFunctions.h @date Thu Jun 13 22:17:32 2002 @author Ian Hawke @desc A header file with the definitions of the functions to be called by other thorns. This will exist until the function aliasing is sorted out. @enddesc @@*/ #ifndef MOL_FUNCTIONS_H #define MOL_FUNCT...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RKCoefficients.c
/*@@ @file RKCoefficients.c @date Tue May 21 02:46:51 2002 @author Ian Hawke @desc The routine setting up the coefficients for the generic Runge-Kutta style integrator. At some point this should be extended so that these can be set from the parameter file. @version $Header$ @...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RK4-MR-2_1.c
/*@@ @file RK4-MR-2_1.c @date 2012-03-25 @author Christian Reisswig @desc A routine to perform 3rd order 2:1 multirate RK evolution. Mostly copied from genericRK.c @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #inc...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
Registration.c
/*@@ @file Registration.c @date Thu May 30 11:21:44 2002 @author Ian Hawke @desc The external functions called (via function aliasing) by physics thorns to tell MoL that they want these GFs to be treated as a given type. @enddesc @version $Header$ @@*/ #include <string.h> ...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RHSNaNCheck.c
/*@@ @file RHSNaNCheck.c @date Mon May 20 09:52:33 2002 @author Ian Hawke @desc Check the RHS GFs for NaNs. @enddesc @version $Header$ @@*/ #include <stdlib.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "ExternalVariables.h" static con...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
RK3.c
/*@@ @file RK3.c @date Tue Jul 22 00:38:47 2003 @author Ian Hawke @desc A specialized third order Runge-Kutta time integrator. This is the integrator that Shu refers to as the optimal TVD third order method (see reference in documentation). @enddesc @version $Header$ @@*/ ...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
Startup.c
/*@@ @file Startup.c @date Wed May 22 02:09:19 2002 @author @desc Register the startup banner. The external variables are also declared here. These are the arrays containing the variable indexes and right hand sides, and the number of each type of variable currently in use (the...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
ICN.c
/*@@ @file ICN.c @date Sun May 26 04:29:07 2002 @author Ian Hawke @desc This implements the more efficient Iterative Crank Nicholson integrator. This follows the implementation of ICN in all AEI codes and is equivalent to (but hopefully more efficient than) the generic ICN integr...
CactusNumerical/MoL
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn MoL # $Header$
# Interface definition for thorn MoL # $Header$ implements: MethodOfLines ################################################## ### Functions from NaNChecker that may be used ### ################################################## CCTK_INT FUNCTION CheckVarsForNaN \ (CCTK_POINTER_TO_CONST IN cctkGH, ...
# Parameter definitions for thorn MoL # $Header$ restricted: CCTK_INT MoL_Num_Evolved_Vars "The maximum number of variables to be evolved by MoL (DPRECATED)" ACCUMULATOR = (x+y) { 0:* :: "Anything non negative. Added to by other thorns." } 0 CCTK_INT MoL_Num_Evolved_Vars_Slow "The maximum number of 'slow' variabl...
# Schedule definitions for thorn MoL # $Header$ ########################################################## ### Always require storage for the counters and time ### ########################################################## STORAGE: MoL_Counters, MoL_Original_Time ##################################################...
AB.c
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include <assert.h> #include <math.h> #include <stdlib.h> #include "ExternalVariables.h" /* Coefficients taken from * http://en.wikipedia.org/wiki/Linear_multistep_method, which cites * (Hairer, Nørsett & Wanner 1993, §III.1; Butcher 2003...
CactusNumerical/Noise
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn Noise # $Header$ IMPLEMENTS: Noise INHERITS: grid uses include header: Symmetry.h
# Parameter definitions for thorn Noise # $Header$ #------------------------------------------------------------------------------ # Private: #------------------------------------------------------------------------------ private: BOOLEAN apply_id_noise "Add random noise to initial data" { } "no" BOOLEAN apply_bc_no...
# Schedule definitions for thorn Noise # $Header$ if (apply_id_noise) { SCHEDULE id_noise AT CCTK_INITIAL AFTER (ADMBase_InitialData ADMBase_InitialGauge HydroBase_Initial) BEFORE (ADMBase_PostInitial HydroBase_Prim2ConInitial) { LANG: C } "Add noise to initial data" } if (apply_bc_noise) { SCHEDULE bc_no...
noise.h
/* $Header$ */ #ifndef NOISE_H #define NOISE_H #include <assert.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "cctk.h" /* constants */ #define MAXDIM 3 /* macros */ #define RAND_VAL ((random()*(1.0/RAND_MAX)-0.5)*amplitude) #define BOUNDARY_NOISE(doBC, ...
CactusNumerical/Noise
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn Noise # $Header$ IMPLEMENTS: Noise INHERITS: grid uses include header: Symmetry.h
# Parameter definitions for thorn Noise # $Header$ #------------------------------------------------------------------------------ # Private: #------------------------------------------------------------------------------ private: BOOLEAN apply_id_noise "Add random noise to initial data" { } "no" BOOLEAN apply_bc_no...
# Schedule definitions for thorn Noise # $Header$ if (apply_id_noise) { SCHEDULE id_noise AT CCTK_INITIAL AFTER (ADMBase_InitialData ADMBase_InitialGauge HydroBase_Initial) BEFORE (ADMBase_PostInitial HydroBase_Prim2ConInitial) { LANG: C } "Add noise to initial data" } if (apply_bc_noise) { SCHEDULE bc_no...
id_noise.c
/* IDRandom Denis Pollney <pollney@aei.mpg.de> 14 February 2002 Put random data into the evolution variables for robust stability testing a-la-winicour. $Header$ */ #include <stdlib.h> #include "noise.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" void add_noise_to_var (int idx, const ch...
CactusNumerical/Noise
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn Noise # $Header$ IMPLEMENTS: Noise INHERITS: grid uses include header: Symmetry.h
# Parameter definitions for thorn Noise # $Header$ #------------------------------------------------------------------------------ # Private: #------------------------------------------------------------------------------ private: BOOLEAN apply_id_noise "Add random noise to initial data" { } "no" BOOLEAN apply_bc_no...
# Schedule definitions for thorn Noise # $Header$ if (apply_id_noise) { SCHEDULE id_noise AT CCTK_INITIAL AFTER (ADMBase_InitialData ADMBase_InitialGauge HydroBase_Initial) BEFORE (ADMBase_PostInitial HydroBase_Prim2ConInitial) { LANG: C } "Add noise to initial data" } if (apply_bc_noise) { SCHEDULE bc_no...
make.code.defn
# Main make.code.defn file for thorn Noise # $Header$ # Source files in this directory SRCS = id_noise.c bc_noise.c # Subdirectories containing source files SUBDIRS =
CactusNumerical/Noise
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn Noise # $Header$ IMPLEMENTS: Noise INHERITS: grid uses include header: Symmetry.h
# Parameter definitions for thorn Noise # $Header$ #------------------------------------------------------------------------------ # Private: #------------------------------------------------------------------------------ private: BOOLEAN apply_id_noise "Add random noise to initial data" { } "no" BOOLEAN apply_bc_no...
# Schedule definitions for thorn Noise # $Header$ if (apply_id_noise) { SCHEDULE id_noise AT CCTK_INITIAL AFTER (ADMBase_InitialData ADMBase_InitialGauge HydroBase_Initial) BEFORE (ADMBase_PostInitial HydroBase_Prim2ConInitial) { LANG: C } "Add noise to initial data" } if (apply_bc_noise) { SCHEDULE bc_no...
bc_noise.c
/* $Header$ */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "noise.h" #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "cctk_FortranString.h" #include "Symmetry.h" /* #define DEBUG_BOUNDARY 1 */ static int ApplyBndNoise (const cGH *...
CactusNumerical/Norms
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn Norms # $Header$ implements: Norms inherits: private: INT handles_group TYPE=SCALAR { sum_handle } "handles for reduction operators" INT varinfo TYPE=ARRAY DIM=1 SIZE=max_nr_vars DISTRIB=constant { varindices_1st, varindices_2nd } "variable info - which vars to compute norms fo...
# Parameter definitions for thorn Norms # $Header$ INT max_nr_vars "maximum number of variables for which norms to compute" { 0:* :: "positive" } 100 INT verbose "verbosity of output" { 0:9 :: "higher number means more verbose output" } 0 STRING gridfunctions_1st "Set of grid functions to compute norms for 2nd ...
# Schedule definitions for thorn Norms # $Header$ STORAGE: varinfo nrdecvar_gr bgvals_group schedule Norms_Setup_Vars at WRAGH { LANG: C OPTIONS: global } "check norm_type and setup the vars info" schedule Norms_Compute_Norms at ANALYSIS { LANG: C STORAGE: diff_term_group norm_group TRIGGERS: norm_group ...
Compute_Norm.c
#include <math.h> #include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "util_ErrorCodes.h" #include "util_Table.h" static const char * rcsid = "$Header$"; CCTK_FILEVERSION(Norms_Compute_Norm_c); void Norms_Compute_Norms (CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS...
CactusNumerical/Norms
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn Norms # $Header$ implements: Norms inherits: private: INT handles_group TYPE=SCALAR { sum_handle } "handles for reduction operators" INT varinfo TYPE=ARRAY DIM=1 SIZE=max_nr_vars DISTRIB=constant { varindices_1st, varindices_2nd } "variable info - which vars to compute norms fo...
# Parameter definitions for thorn Norms # $Header$ INT max_nr_vars "maximum number of variables for which norms to compute" { 0:* :: "positive" } 100 INT verbose "verbosity of output" { 0:9 :: "higher number means more verbose output" } 0 STRING gridfunctions_1st "Set of grid functions to compute norms for 2nd ...
# Schedule definitions for thorn Norms # $Header$ STORAGE: varinfo nrdecvar_gr bgvals_group schedule Norms_Setup_Vars at WRAGH { LANG: C OPTIONS: global } "check norm_type and setup the vars info" schedule Norms_Compute_Norms at ANALYSIS { LANG: C STORAGE: diff_term_group norm_group TRIGGERS: norm_group ...
Setup_Vars.c
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "util_ErrorCodes.h" #include "util_Table.h" static const char * rcsid = "$Header$"; CCTK_FILEVERSION(Norms_Setup_Vars_c); struct norms_opts { int ac...
CactusNumerical/Norms
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn Norms # $Header$ implements: Norms inherits: private: INT handles_group TYPE=SCALAR { sum_handle } "handles for reduction operators" INT varinfo TYPE=ARRAY DIM=1 SIZE=max_nr_vars DISTRIB=constant { varindices_1st, varindices_2nd } "variable info - which vars to compute norms fo...
# Parameter definitions for thorn Norms # $Header$ INT max_nr_vars "maximum number of variables for which norms to compute" { 0:* :: "positive" } 100 INT verbose "verbosity of output" { 0:9 :: "higher number means more verbose output" } 0 STRING gridfunctions_1st "Set of grid functions to compute norms for 2nd ...
# Schedule definitions for thorn Norms # $Header$ STORAGE: varinfo nrdecvar_gr bgvals_group schedule Norms_Setup_Vars at WRAGH { LANG: C OPTIONS: global } "check norm_type and setup the vars info" schedule Norms_Compute_Norms at ANALYSIS { LANG: C STORAGE: diff_term_group norm_group TRIGGERS: norm_group ...
make.code.defn
# Main make.code.defn file for thorn Norms # $Header$ # Source files in this directory SRCS = Setup_Vars.c Compute_Norm.c # Subdirectories containing source files SUBDIRS =
CactusNumerical/Periodic
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn Periodic REQUIRES THORNS: Slab
# Interface definition for thorn Periodic IMPLEMENTS: Periodic USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister CCTK_INT FUNCTION \ SymmetryRegisterGrid \ ...
# Parameter definitions for thorn Periodic BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN periodic "Periodic boundary conditions" { } "no" BOOLEAN periodic_x "Periodic boundary conditions in x-direction" { } "no" BOOLEAN periodic_y "Periodic boundary conditions in y-dire...
# Schedule definitions for thorn Periodic SCHEDULE Periodic_RegisterBC IN SymmetryRegister { LANG: C } "Register periodic boundary conditions" SCHEDULE Periodic_ApplyBC IN BoundaryConditions { LANG: C } "Apply periodic boundary conditions"
periodic.c
#include <assert.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "cctk.h" #include "cctk_Parameters.h" #include "Slab.h" CCTK_INT BndPeriodicVI (CCTK_POINTER_TO_CONST _GH, CCTK_INT size, CCTK_INT const * restrict const stencil, CCTK_INT const do_per...
CactusNumerical/Periodic
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn Periodic REQUIRES THORNS: Slab
# Interface definition for thorn Periodic IMPLEMENTS: Periodic USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister CCTK_INT FUNCTION \ SymmetryRegisterGrid \ ...
# Parameter definitions for thorn Periodic BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN periodic "Periodic boundary conditions" { } "no" BOOLEAN periodic_x "Periodic boundary conditions in x-direction" { } "no" BOOLEAN periodic_y "Periodic boundary conditions in y-dire...
# Schedule definitions for thorn Periodic SCHEDULE Periodic_RegisterBC IN SymmetryRegister { LANG: C } "Register periodic boundary conditions" SCHEDULE Periodic_ApplyBC IN BoundaryConditions { LANG: C } "Apply periodic boundary conditions"
make.code.defn
# Main make.code.defn file for thorn Periodic # Source files in this directory SRCS = periodic.c # Subdirectories containing source files SUBDIRS =
CactusNumerical/ReflectionSymmetry
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn ReflectionSymmetry IMPLEMENTS: ReflectionSymmetry CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn ReflectionSymmetry BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN reflection_x "Reflection symmetry at the lower x boundary" { } "no" BOOLEAN reflection_y "Reflection symmetry at the lower y boundary" { } "no" BOOLEAN reflection_z "Ref...
# Schedule definitions for thorn ReflectionSymmetry SCHEDULE ReflectionSymmetry_Register IN SymmetryRegister { LANG: C } "Register reflection symmetry boundaries" SCHEDULE ReflectionSymmetry_Apply IN BoundaryConditions { LANG: C } "Apply reflection symmetries"
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 "reflection.h" CCTK_INT ReflectionSymmetry_Interpolate (CCTK_POINTER_TO_CONST restrict const cctkGH, ...
CactusNumerical/ReflectionSymmetry
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn ReflectionSymmetry IMPLEMENTS: ReflectionSymmetry CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn ReflectionSymmetry BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN reflection_x "Reflection symmetry at the lower x boundary" { } "no" BOOLEAN reflection_y "Reflection symmetry at the lower y boundary" { } "no" BOOLEAN reflection_z "Ref...
# Schedule definitions for thorn ReflectionSymmetry SCHEDULE ReflectionSymmetry_Register IN SymmetryRegister { LANG: C } "Register reflection symmetry boundaries" SCHEDULE ReflectionSymmetry_Apply IN BoundaryConditions { LANG: C } "Apply reflection symmetries"
register.c
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "reflection.h" void ReflectionSymmetry_Register (CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; int do_reflection[6]; CCTK_INT nboundaryzones[6]; CCTK_INT is_internal[6]; CCTK_INT is_staggered[6...
CactusNumerical/ReflectionSymmetry
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn ReflectionSymmetry IMPLEMENTS: ReflectionSymmetry CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn ReflectionSymmetry BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN reflection_x "Reflection symmetry at the lower x boundary" { } "no" BOOLEAN reflection_y "Reflection symmetry at the lower y boundary" { } "no" BOOLEAN reflection_z "Ref...
# Schedule definitions for thorn ReflectionSymmetry SCHEDULE ReflectionSymmetry_Register IN SymmetryRegister { LANG: C } "Register reflection symmetry boundaries" SCHEDULE ReflectionSymmetry_Apply IN BoundaryConditions { LANG: C } "Apply reflection symmetries"
apply.c
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "util_ErrorCodes.h" #include "util_Table.h" #include "reflection.h" #define COPY_PRE(VARTYPE) \ static ...
CactusNumerical/ReflectionSymmetry
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn ReflectionSymmetry IMPLEMENTS: ReflectionSymmetry CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn ReflectionSymmetry BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN reflection_x "Reflection symmetry at the lower x boundary" { } "no" BOOLEAN reflection_y "Reflection symmetry at the lower y boundary" { } "no" BOOLEAN reflection_z "Ref...
# Schedule definitions for thorn ReflectionSymmetry SCHEDULE ReflectionSymmetry_Register IN SymmetryRegister { LANG: C } "Register reflection symmetry boundaries" SCHEDULE ReflectionSymmetry_Apply IN BoundaryConditions { LANG: C } "Apply reflection symmetries"
make.code.defn
# Main make.code.defn file for thorn ReflectionSymmetry # Source files in this directory SRCS = apply.c interpolate.c register.c # Subdirectories containing source files SUBDIRS =
CactusNumerical/ReflectionSymmetry
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn ReflectionSymmetry IMPLEMENTS: ReflectionSymmetry CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn ReflectionSymmetry BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN reflection_x "Reflection symmetry at the lower x boundary" { } "no" BOOLEAN reflection_y "Reflection symmetry at the lower y boundary" { } "no" BOOLEAN reflection_z "Ref...
# Schedule definitions for thorn ReflectionSymmetry SCHEDULE ReflectionSymmetry_Register IN SymmetryRegister { LANG: C } "Register reflection symmetry boundaries" SCHEDULE ReflectionSymmetry_Apply IN BoundaryConditions { LANG: C } "Apply reflection symmetries"
reflection.h
#ifndef REFLECTIONSYMMETRY_H #define REFLECTIONSYMMETRY_H #include "cctk.h" #include "cctk_Arguments.h" CCTK_INT ReflectionSymmetry_Interpolate (CCTK_POINTER_TO_CONST restrict const cctkGH, CCTK_INT const N_dims, CCTK_INT const local_interp_handle, ...
CactusNumerical/RotatingSymmetry180
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn RotatingSymmetry180 REQUIRES THORNS: Slab
# Interface definition for thorn RotatingSymmetry180 IMPLEMENTS: RotatingSymmetry180 USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn RotatingSymmetry180 BOOLEAN verbose "Produce screen output while applying boundary conditions" STEERABLE=always { } "no" KEYWORD hyperslabber "Hyperslabbing mechanism" STEERABLE=always { "TAT/Slab" :: "" "GetHyperslab" :: "" } "TAT/Slab" BOOLEAN use_coordbase "Get symmet...
# Schedule definitions for thorn RotatingSymmetry180 SCHEDULE Rot180_CheckTensorTypes AT paramcheck { LANG: C } "Check tensor type definitions for consistency" SCHEDULE Rot180_RegisterSymmetry IN SymmetryRegister { LANG: C } "Register symmetry boundaries" SCHEDULE Rot180_ComputeLevelExtent IN BoundaryConditions ...
interpolate.c
#include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "util_ErrorCodes.h" #include "util_Table.h" #include "rotatingsymmetry180.h" void Rot180_CheckTensorTypes (CCTK_ARGUMENTS) { int gi; /* Check tensor types of all groups */ for (gi=0;...
CactusNumerical/RotatingSymmetry180
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn RotatingSymmetry180 REQUIRES THORNS: Slab
# Interface definition for thorn RotatingSymmetry180 IMPLEMENTS: RotatingSymmetry180 USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn RotatingSymmetry180 BOOLEAN verbose "Produce screen output while applying boundary conditions" STEERABLE=always { } "no" KEYWORD hyperslabber "Hyperslabbing mechanism" STEERABLE=always { "TAT/Slab" :: "" "GetHyperslab" :: "" } "TAT/Slab" BOOLEAN use_coordbase "Get symmet...
# Schedule definitions for thorn RotatingSymmetry180 SCHEDULE Rot180_CheckTensorTypes AT paramcheck { LANG: C } "Check tensor type definitions for consistency" SCHEDULE Rot180_RegisterSymmetry IN SymmetryRegister { LANG: C } "Register symmetry boundaries" SCHEDULE Rot180_ComputeLevelExtent IN BoundaryConditions ...
rotatingsymmetry180.c
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <util_ErrorCodes.h> #include <util_Table.h> #include <Slab.h> #include "rotatingsymmetry180.h" #include <assert.h> #include <math.h> #include <stdlib.h> #include <string.h> /* bbox, lbnd and ubnd of combined level box */ static int...
CactusNumerical/RotatingSymmetry180
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn RotatingSymmetry180 REQUIRES THORNS: Slab
# Interface definition for thorn RotatingSymmetry180 IMPLEMENTS: RotatingSymmetry180 USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn RotatingSymmetry180 BOOLEAN verbose "Produce screen output while applying boundary conditions" STEERABLE=always { } "no" KEYWORD hyperslabber "Hyperslabbing mechanism" STEERABLE=always { "TAT/Slab" :: "" "GetHyperslab" :: "" } "TAT/Slab" BOOLEAN use_coordbase "Get symmet...
# Schedule definitions for thorn RotatingSymmetry180 SCHEDULE Rot180_CheckTensorTypes AT paramcheck { LANG: C } "Check tensor type definitions for consistency" SCHEDULE Rot180_RegisterSymmetry IN SymmetryRegister { LANG: C } "Register symmetry boundaries" SCHEDULE Rot180_ComputeLevelExtent IN BoundaryConditions ...
make.code.defn
# Main make.code.defn file for thorn RotatingSymmetry180 # Source files in this directory SRCS = interpolate.c rotatingsymmetry180.c registersymmetry.c # Subdirectories containing source files SUBDIRS =
CactusNumerical/RotatingSymmetry180
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn RotatingSymmetry180 REQUIRES THORNS: Slab
# Interface definition for thorn RotatingSymmetry180 IMPLEMENTS: RotatingSymmetry180 USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn RotatingSymmetry180 BOOLEAN verbose "Produce screen output while applying boundary conditions" STEERABLE=always { } "no" KEYWORD hyperslabber "Hyperslabbing mechanism" STEERABLE=always { "TAT/Slab" :: "" "GetHyperslab" :: "" } "TAT/Slab" BOOLEAN use_coordbase "Get symmet...
# Schedule definitions for thorn RotatingSymmetry180 SCHEDULE Rot180_CheckTensorTypes AT paramcheck { LANG: C } "Check tensor type definitions for consistency" SCHEDULE Rot180_RegisterSymmetry IN SymmetryRegister { LANG: C } "Register symmetry boundaries" SCHEDULE Rot180_ComputeLevelExtent IN BoundaryConditions ...
registersymmetry.c
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "rotatingsymmetry180.h" void Rot180_RegisterSymmetry (CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; CCTK_INT nboundaryzones[6]; CCTK_INT is_internal[6]; CCTK_INT is_staggered[6]; CCTK_INT shiftout...
CactusNumerical/RotatingSymmetry180
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn RotatingSymmetry180 REQUIRES THORNS: Slab
# Interface definition for thorn RotatingSymmetry180 IMPLEMENTS: RotatingSymmetry180 USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn RotatingSymmetry180 BOOLEAN verbose "Produce screen output while applying boundary conditions" STEERABLE=always { } "no" KEYWORD hyperslabber "Hyperslabbing mechanism" STEERABLE=always { "TAT/Slab" :: "" "GetHyperslab" :: "" } "TAT/Slab" BOOLEAN use_coordbase "Get symmet...
# Schedule definitions for thorn RotatingSymmetry180 SCHEDULE Rot180_CheckTensorTypes AT paramcheck { LANG: C } "Check tensor type definitions for consistency" SCHEDULE Rot180_RegisterSymmetry IN SymmetryRegister { LANG: C } "Register symmetry boundaries" SCHEDULE Rot180_ComputeLevelExtent IN BoundaryConditions ...
rotatingsymmetry180.h
#ifndef ROTATINGSYMMETRY180_H #define ROTATINGSYMMETRY180_H #include "cctk.h" #include "cctk_Arguments.h" void Rot180_RegisterSymmetry (CCTK_ARGUMENTS); int BndRot180VI (cGH const * restrict const cctkGH, int const nvars, CCTK_INT const * restrict const vis); void Rot180_ApplyBC (C...
CactusNumerical/RotatingSymmetry90
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn RotatingSymmetry90 REQUIRES THORNS: Slab
# Interface definition for thorn RotatingSymmetry90 IMPLEMENTS: RotatingSymmetry90 USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn RotatingSymmetry90 BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN poison_boundaries "Fill the symmetry boundary with a poison value before the symmetry is applied" STEERABLE=always { } "no" CCTK_INT poison_value "Integer value (0..255) ...
# Schedule definitions for thorn RotatingSymmetry90 SCHEDULE Rot90_CheckTensorTypes AT paramcheck { LANG: C } "Check tensor type definitions for consistency" SCHEDULE Rot90_RegisterSymmetry IN SymmetryRegister { LANG: C } "Register symmetry boundaries" SCHEDULE Rot90_ComputeLevelExtent IN BoundaryConditions BEFO...
interpolate.c
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "util_ErrorCodes.h" #include "util_Table.h" #include "rotatingsymmetry90.h" /* This is pretty hard coded into all the tensor types and cannot be changed easily. */ #define DIM 3 /* spatial dimension */ ...
CactusNumerical/RotatingSymmetry90
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn RotatingSymmetry90 REQUIRES THORNS: Slab
# Interface definition for thorn RotatingSymmetry90 IMPLEMENTS: RotatingSymmetry90 USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn RotatingSymmetry90 BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN poison_boundaries "Fill the symmetry boundary with a poison value before the symmetry is applied" STEERABLE=always { } "no" CCTK_INT poison_value "Integer value (0..255) ...
# Schedule definitions for thorn RotatingSymmetry90 SCHEDULE Rot90_CheckTensorTypes AT paramcheck { LANG: C } "Check tensor type definitions for consistency" SCHEDULE Rot90_RegisterSymmetry IN SymmetryRegister { LANG: C } "Register symmetry boundaries" SCHEDULE Rot90_ComputeLevelExtent IN BoundaryConditions BEFO...
rotatingsymmetry90.h
#ifndef ROTATINGSYMMETRY90_H #define ROTATINGSYMMETRY90_H #include "cctk.h" #include "cctk_Arguments.h" void Rot90_RegisterSymmetry (CCTK_ARGUMENTS); int BndRot90VI (cGH const * restrict const cctkGH, int const nvars, CCTK_INT const * restrict const vis); void Rot90_ApplyBC (CCTK_ARG...
CactusNumerical/RotatingSymmetry90
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn RotatingSymmetry90 REQUIRES THORNS: Slab
# Interface definition for thorn RotatingSymmetry90 IMPLEMENTS: RotatingSymmetry90 USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn RotatingSymmetry90 BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN poison_boundaries "Fill the symmetry boundary with a poison value before the symmetry is applied" STEERABLE=always { } "no" CCTK_INT poison_value "Integer value (0..255) ...
# Schedule definitions for thorn RotatingSymmetry90 SCHEDULE Rot90_CheckTensorTypes AT paramcheck { LANG: C } "Check tensor type definitions for consistency" SCHEDULE Rot90_RegisterSymmetry IN SymmetryRegister { LANG: C } "Register symmetry boundaries" SCHEDULE Rot90_ComputeLevelExtent IN BoundaryConditions BEFO...
make.code.defn
# Main make.code.defn file for thorn RotatingSymmetry90 # Source files in this directory SRCS = interpolate.c rotatingsymmetry90.c registersymmetry.c # Subdirectories containing source files SUBDIRS =
CactusNumerical/RotatingSymmetry90
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn RotatingSymmetry90 REQUIRES THORNS: Slab
# Interface definition for thorn RotatingSymmetry90 IMPLEMENTS: RotatingSymmetry90 USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn RotatingSymmetry90 BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN poison_boundaries "Fill the symmetry boundary with a poison value before the symmetry is applied" STEERABLE=always { } "no" CCTK_INT poison_value "Integer value (0..255) ...
# Schedule definitions for thorn RotatingSymmetry90 SCHEDULE Rot90_CheckTensorTypes AT paramcheck { LANG: C } "Check tensor type definitions for consistency" SCHEDULE Rot90_RegisterSymmetry IN SymmetryRegister { LANG: C } "Register symmetry boundaries" SCHEDULE Rot90_ComputeLevelExtent IN BoundaryConditions BEFO...
registersymmetry.c
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "rotatingsymmetry90.h" void Rot90_RegisterSymmetry (CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; CCTK_INT nboundaryzones[6]; CCTK_INT is_internal[6]; CCTK_INT is_staggered[6]; CCTK_INT shiftout[6]...
CactusNumerical/RotatingSymmetry90
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn RotatingSymmetry90 REQUIRES THORNS: Slab
# Interface definition for thorn RotatingSymmetry90 IMPLEMENTS: RotatingSymmetry90 USES INCLUDE HEADER: Slab.h CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) REQUIRES FUNCTION SymmetryRegister # which_faces : array [N_FACES] # symmetry_zone_width: array [N_FACES] CCTK_INT FUNCTION ...
# Parameter definitions for thorn RotatingSymmetry90 BOOLEAN verbose "Produce screen output while applying boundary conditions" { } "no" BOOLEAN poison_boundaries "Fill the symmetry boundary with a poison value before the symmetry is applied" STEERABLE=always { } "no" CCTK_INT poison_value "Integer value (0..255) ...
# Schedule definitions for thorn RotatingSymmetry90 SCHEDULE Rot90_CheckTensorTypes AT paramcheck { LANG: C } "Check tensor type definitions for consistency" SCHEDULE Rot90_RegisterSymmetry IN SymmetryRegister { LANG: C } "Register symmetry boundaries" SCHEDULE Rot90_ComputeLevelExtent IN BoundaryConditions BEFO...
rotatingsymmetry90.c
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <util_ErrorCodes.h> #include <util_Table.h> #include <Slab.h> #include "rotatingsymmetry90.h" #include <assert.h> #include <math.h> #include <stdlib.h> #include <string.h> /* This is pretty hard coded into all the tensor types an...
CactusNumerical/Slab
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn Slab PROVIDES Slab { } OPTIONAL LoopControl MPI { }
# Interface definition for thorn Slab IMPLEMENTS: Slab INCLUDES HEADER: slab.h IN Slab.h INCLUDES HEADER: slab.inc IN Slab.inc USES INCLUDE HEADER: loopcontrol.h CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld
# Parameter definitions for thorn Slab BOOLEAN timer_output "Print slabbing timings at shutdown time" STEERABLE=always { } "no" BOOLEAN use_alltoallv "Use MPI_Alltoallv for communication?" STEERABLE=always { } "no"
# Schedule definitions for thorn Slab SCHEDULE Slab_InitMPIDatatypes AT startup after Driver_Startup { LANG: C } "Create MPI datatypes for complex variables in C" SCHEDULE Slab_InitTimers AT wragh { LANG: C } "Initialise timers" if (timer_output) { SCHEDULE Slab_PrintTimers AT shutdown { LANG: C } "Pri...
slab.cc
// TODO: // Provide facilities for dim > 3 // Set up the slab exchange information in advance // Slab in several stages // Test slabbing without MPI // Allow not setting the ghost zones // Allow not using / not setting the boundaries // Allow different numbers of ghost zones at the lower and upper boundary // Print ...
CactusNumerical/Slab
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn Slab PROVIDES Slab { } OPTIONAL LoopControl MPI { }
# Interface definition for thorn Slab IMPLEMENTS: Slab INCLUDES HEADER: slab.h IN Slab.h INCLUDES HEADER: slab.inc IN Slab.inc USES INCLUDE HEADER: loopcontrol.h CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld
# Parameter definitions for thorn Slab BOOLEAN timer_output "Print slabbing timings at shutdown time" STEERABLE=always { } "no" BOOLEAN use_alltoallv "Use MPI_Alltoallv for communication?" STEERABLE=always { } "no"
# Schedule definitions for thorn Slab SCHEDULE Slab_InitMPIDatatypes AT startup after Driver_Startup { LANG: C } "Create MPI datatypes for complex variables in C" SCHEDULE Slab_InitTimers AT wragh { LANG: C } "Initialise timers" if (timer_output) { SCHEDULE Slab_PrintTimers AT shutdown { LANG: C } "Pri...
slab.h
#ifndef SLAB_H #define SLAB_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <cctk.h> /* * Slab_Transfer copies a slab from one array into a slab of another * array. * * The src and dst variables describe the source and the destination * slab, respectively. * * The variables gsh, lbnd...
CactusNumerical/Slab
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn Slab PROVIDES Slab { } OPTIONAL LoopControl MPI { }
# Interface definition for thorn Slab IMPLEMENTS: Slab INCLUDES HEADER: slab.h IN Slab.h INCLUDES HEADER: slab.inc IN Slab.inc USES INCLUDE HEADER: loopcontrol.h CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld
# Parameter definitions for thorn Slab BOOLEAN timer_output "Print slabbing timings at shutdown time" STEERABLE=always { } "no" BOOLEAN use_alltoallv "Use MPI_Alltoallv for communication?" STEERABLE=always { } "no"
# Schedule definitions for thorn Slab SCHEDULE Slab_InitMPIDatatypes AT startup after Driver_Startup { LANG: C } "Create MPI datatypes for complex variables in C" SCHEDULE Slab_InitTimers AT wragh { LANG: C } "Initialise timers" if (timer_output) { SCHEDULE Slab_PrintTimers AT shutdown { LANG: C } "Pri...
make.code.defn
# Main make.code.defn file for thorn Slab # Source files in this directory SRCS = slab.cc # Subdirectories containing source files SUBDIRS =
CactusNumerical/Slab
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn Slab PROVIDES Slab { } OPTIONAL LoopControl MPI { }
# Interface definition for thorn Slab IMPLEMENTS: Slab INCLUDES HEADER: slab.h IN Slab.h INCLUDES HEADER: slab.inc IN Slab.inc USES INCLUDE HEADER: loopcontrol.h CCTK_POINTER_TO_CONST \ FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetMPICommWorld
# Parameter definitions for thorn Slab BOOLEAN timer_output "Print slabbing timings at shutdown time" STEERABLE=always { } "no" BOOLEAN use_alltoallv "Use MPI_Alltoallv for communication?" STEERABLE=always { } "no"
# Schedule definitions for thorn Slab SCHEDULE Slab_InitMPIDatatypes AT startup after Driver_Startup { LANG: C } "Create MPI datatypes for complex variables in C" SCHEDULE Slab_InitTimers AT wragh { LANG: C } "Initialise timers" if (timer_output) { SCHEDULE Slab_PrintTimers AT shutdown { LANG: C } "Pri...
slab.inc
! -*-F90-*- interface subroutine Slab_Transfer (ierr, cctkGH, dim, & src_gsh, src_lbnd, src_lsh, src_ash, & src_lbbox, src_ubbox, src_nghostzones, & src_off, src_str, src_len, & dst_gsh, dst_lbnd, dst_lsh, dst_ash, & dst_lbbox, dst_ubbox, dst_nghostzones, & dst_off, d...
CactusNumerical/SlabTest
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn SlabTest # $Header$ IMPLEMENTS: SlabTest INHERITS: Slab USES INCLUDE HEADER: Slab.h CCTK_REAL gfs TYPE=gf { gfx gfy gfz } "grid functions" CCTK_INT igfs TYPE=gf { igfx igfy igfz } "integer grid functions" CCTK_REAL a1s TYPE=array DIM=1 SIZE=10 { a1x a1y a1z } "1D grid arra...
# Parameter definitions for thorn SlabTest # $Header$
# Schedule definitions for thorn SlabTest # $Header$ STORAGE: success SCHEDULE SlabTest_Test AT initial { LANG: C STORAGE: gfs a1s a2s a3s igfs } "Test Slab transfer routines"
slabtest.c
/* $Header$ */ #include <assert.h> #include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" #include "Slab.h" static const char * rcsid = "$Header$"; CCTK_FILEVERSION(TAT_SlabTest_slabtest_c); static void runtest (CCTK_ARGUMENTS, struct xferinfo const * restrict const info) { DECLARE_CCTK_ARGUME...
CactusNumerical/SlabTest
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn SlabTest # $Header$ IMPLEMENTS: SlabTest INHERITS: Slab USES INCLUDE HEADER: Slab.h CCTK_REAL gfs TYPE=gf { gfx gfy gfz } "grid functions" CCTK_INT igfs TYPE=gf { igfx igfy igfz } "integer grid functions" CCTK_REAL a1s TYPE=array DIM=1 SIZE=10 { a1x a1y a1z } "1D grid arra...
# Parameter definitions for thorn SlabTest # $Header$
# Schedule definitions for thorn SlabTest # $Header$ STORAGE: success SCHEDULE SlabTest_Test AT initial { LANG: C STORAGE: gfs a1s a2s a3s igfs } "Test Slab transfer routines"
make.code.defn
# Main make.code.defn file for thorn SlabTest # $Header$ # Source files in this directory SRCS = slabtest.c # Subdirectories containing source files SUBDIRS =
CactusNumerical/SpaceMask
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SpaceMask # $Header$ PROVIDES SpaceMask { SCRIPT LANG } REQUIRES CartGrid3D
# Interface definition for thorn SpaceMask # $Header$ implements: SpaceMask inherits: grid USES INCLUDE: Symmetry.h # our header file "SpaceMask.h" may be #included by other thorns INCLUDE HEADER: SpaceMask.h in SpaceMask.h public: CCTK_INT space_mask_group type=GF tags='tensortypealias="Scalar" Prolongation="None...
# Parameter definitions for thorn SpaceMask # $Header$ restricted: BOOLEAN use_mask "Turn on storage for mask?" { } "no"
# Schedule definitions for thorn SpaceMask # $Header$ if (use_mask) { STORAGE: space_mask_group schedule MaskZero at CCTK_BASEGRID { LANG: C } "Initialise mask to zero" schedule MaskSym at CCTK_WRAGH { LANG: C OPTIONS: global } "Set grid symmetries for mask" #Initialize the mask again for ...
MaskUtils.c
/*@@ @file MaskUtils.c @date October 2002 @author Denis Pollney @desc Utilities for registering/setting/checking the mask. @desc @version $Header$ @@*/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_FortranString.h" #include "SpaceM...
CactusNumerical/SpaceMask
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SpaceMask # $Header$ PROVIDES SpaceMask { SCRIPT LANG } REQUIRES CartGrid3D
# Interface definition for thorn SpaceMask # $Header$ implements: SpaceMask inherits: grid USES INCLUDE: Symmetry.h # our header file "SpaceMask.h" may be #included by other thorns INCLUDE HEADER: SpaceMask.h in SpaceMask.h public: CCTK_INT space_mask_group type=GF tags='tensortypealias="Scalar" Prolongation="None...
# Parameter definitions for thorn SpaceMask # $Header$ restricted: BOOLEAN use_mask "Turn on storage for mask?" { } "no"
# Schedule definitions for thorn SpaceMask # $Header$ if (use_mask) { STORAGE: space_mask_group schedule MaskZero at CCTK_BASEGRID { LANG: C } "Initialise mask to zero" schedule MaskSym at CCTK_WRAGH { LANG: C OPTIONS: global } "Set grid symmetries for mask" #Initialize the mask again for ...
SpaceMask.h
/*@@ @file MaskUtils.c @date October 2002 @author Denis Pollney @desc Function prototypes and macros mask utilities. @desc @version $Header$ @@*/ #ifndef __CACTUSEINSTEIN_SPACEMASK_H__ #define __CACTUSEINSTEIN_SPACEMASK_H__ #define SPACEMASK_DEBUG 0 /**************************...
CactusNumerical/SpaceMask
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SpaceMask # $Header$ PROVIDES SpaceMask { SCRIPT LANG } REQUIRES CartGrid3D
# Interface definition for thorn SpaceMask # $Header$ implements: SpaceMask inherits: grid USES INCLUDE: Symmetry.h # our header file "SpaceMask.h" may be #included by other thorns INCLUDE HEADER: SpaceMask.h in SpaceMask.h public: CCTK_INT space_mask_group type=GF tags='tensortypealias="Scalar" Prolongation="None...
# Parameter definitions for thorn SpaceMask # $Header$ restricted: BOOLEAN use_mask "Turn on storage for mask?" { } "no"
# Schedule definitions for thorn SpaceMask # $Header$ if (use_mask) { STORAGE: space_mask_group schedule MaskZero at CCTK_BASEGRID { LANG: C } "Initialise mask to zero" schedule MaskSym at CCTK_WRAGH { LANG: C OPTIONS: global } "Set grid symmetries for mask" #Initialize the mask again for ...
make.code.defn
# Main make.code.defn file for thorn SpaceMask # $Header$ # Source files in this directory SRCS = MaskInit.c MaskUtils.c # Subdirectories containing source files SUBDIRS =
CactusNumerical/SpaceMask
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SpaceMask # $Header$ PROVIDES SpaceMask { SCRIPT LANG } REQUIRES CartGrid3D
# Interface definition for thorn SpaceMask # $Header$ implements: SpaceMask inherits: grid USES INCLUDE: Symmetry.h # our header file "SpaceMask.h" may be #included by other thorns INCLUDE HEADER: SpaceMask.h in SpaceMask.h public: CCTK_INT space_mask_group type=GF tags='tensortypealias="Scalar" Prolongation="None...
# Parameter definitions for thorn SpaceMask # $Header$ restricted: BOOLEAN use_mask "Turn on storage for mask?" { } "no"
# Schedule definitions for thorn SpaceMask # $Header$ if (use_mask) { STORAGE: space_mask_group schedule MaskZero at CCTK_BASEGRID { LANG: C } "Initialise mask to zero" schedule MaskSym at CCTK_WRAGH { LANG: C OPTIONS: global } "Set grid symmetries for mask" #Initialize the mask again for ...
MaskInit.c
/*@@ @file MaskInit.c @date Fri Apr 26 17:20:13 2002 @author Miguel Alcubierre @desc Initialise the mask (I just copied LapseInits.c) @enddesc @version $Header$ @@*/ #include <math.h> #include <stdio.h> #include <stdlib.h> #include "cctk.h" #include "cctk_Parameters.h" #include ...
CactusNumerical/SphericalSurface
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn SphericalSurface IMPLEMENTS: SphericalSurface inherits: grid # Get current refinement level CCTK_INT FUNCTION GetRefinementLevel (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetRefinementLevel # simple translation function from user-friendly name to numerical Id # if name is not...
# Parameter definitions for thorn SphericalSurface RESTRICTED: # You can enlarge the possible number of surfaces by changing the maximum # 42 in the parameter nsurfaces, and by changing the array sizes [42] found # in many of the parameters below. CCTK_INT nsurfaces "Number of surfaces" STEERABLE=recover { 0:42 ::...
# Schedule definitions for thorn SphericalSurface STORAGE: sf_active STORAGE: sf_valid STORAGE: sf_info STORAGE: sf_radius sf_origin STORAGE: sf_coordinate_descriptors STORAGE: sf_coordinate_estimators STORAGE: sf_shape_descriptors STORAGE: sf_minreflevel STORAGE: sf_maxreflevel SCHEDULE SphericalSurface_SetupRes A...
check.c
#include <assert.h> #include <math.h> #include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" void SphericalSurface_CheckState (CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; int n; for (n=0; n<nsurfaces; ++n) { if (sf_valid[n] > 0 && ...
CactusNumerical/SphericalSurface
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn SphericalSurface IMPLEMENTS: SphericalSurface inherits: grid # Get current refinement level CCTK_INT FUNCTION GetRefinementLevel (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetRefinementLevel # simple translation function from user-friendly name to numerical Id # if name is not...
# Parameter definitions for thorn SphericalSurface RESTRICTED: # You can enlarge the possible number of surfaces by changing the maximum # 42 in the parameter nsurfaces, and by changing the array sizes [42] found # in many of the parameters below. CCTK_INT nsurfaces "Number of surfaces" STEERABLE=recover { 0:42 ::...
# Schedule definitions for thorn SphericalSurface STORAGE: sf_active STORAGE: sf_valid STORAGE: sf_info STORAGE: sf_radius sf_origin STORAGE: sf_coordinate_descriptors STORAGE: sf_coordinate_estimators STORAGE: sf_shape_descriptors STORAGE: sf_minreflevel STORAGE: sf_maxreflevel SCHEDULE SphericalSurface_SetupRes A...
setup.cc
#include <assert.h> #include <math.h> #include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" //#include <mpi.h> // local functions static bool all_sf_names_are_unique(CCTK_INT warnlevel); static int get_reflevel (cGH const * const cctkGH); static int get_reflevel (cGH const ...
CactusNumerical/SphericalSurface
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn SphericalSurface IMPLEMENTS: SphericalSurface inherits: grid # Get current refinement level CCTK_INT FUNCTION GetRefinementLevel (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetRefinementLevel # simple translation function from user-friendly name to numerical Id # if name is not...
# Parameter definitions for thorn SphericalSurface RESTRICTED: # You can enlarge the possible number of surfaces by changing the maximum # 42 in the parameter nsurfaces, and by changing the array sizes [42] found # in many of the parameters below. CCTK_INT nsurfaces "Number of surfaces" STEERABLE=recover { 0:42 ::...
# Schedule definitions for thorn SphericalSurface STORAGE: sf_active STORAGE: sf_valid STORAGE: sf_info STORAGE: sf_radius sf_origin STORAGE: sf_coordinate_descriptors STORAGE: sf_coordinate_estimators STORAGE: sf_shape_descriptors STORAGE: sf_minreflevel STORAGE: sf_maxreflevel SCHEDULE SphericalSurface_SetupRes A...
make.code.defn
# Main make.code.defn file for thorn SphericalSurface # Source files in this directory SRCS = check.c radius.c setup.cc # Subdirectories containing source files SUBDIRS =
CactusNumerical/SphericalSurface
https://bitbucket.org/cactuscode/cactusnumerical.git
# Interface definition for thorn SphericalSurface IMPLEMENTS: SphericalSurface inherits: grid # Get current refinement level CCTK_INT FUNCTION GetRefinementLevel (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION GetRefinementLevel # simple translation function from user-friendly name to numerical Id # if name is not...
# Parameter definitions for thorn SphericalSurface RESTRICTED: # You can enlarge the possible number of surfaces by changing the maximum # 42 in the parameter nsurfaces, and by changing the array sizes [42] found # in many of the parameters below. CCTK_INT nsurfaces "Number of surfaces" STEERABLE=recover { 0:42 ::...
# Schedule definitions for thorn SphericalSurface STORAGE: sf_active STORAGE: sf_valid STORAGE: sf_info STORAGE: sf_radius sf_origin STORAGE: sf_coordinate_descriptors STORAGE: sf_coordinate_estimators STORAGE: sf_shape_descriptors STORAGE: sf_minreflevel STORAGE: sf_maxreflevel SCHEDULE SphericalSurface_SetupRes A...
radius.c
#include <assert.h> #include <math.h> #include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" static CCTK_REAL min (CCTK_REAL const x, CCTK_REAL const y) { return x < y ? x : y; } static CCTK_REAL max (CCTK_REAL const x, CCTK_REAL const y) { return x > y ? x : y; } void...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Derivatives2_6_3.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine deriv2_gf_6_3 ( var, ni, nj, nk, dir, bb, gsize, delta, dvar2 ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: ni, nj, nk CCTK_REAL, dimension(ni,nj,nk), intent...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Derivatives_8_4_min_err_coeff.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine deriv_gf_8_4_opt ( var, ni, nj, nk, dir, bb, gsize, offset, delta, dvar ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: ni, nj, nk CCTK_REAL, dimension(ni,nj,n...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Coefficients_8_4.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine set_coeff_8_4 ( nsize, loc_order, bb, gsize, imin, imax, dd ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: nsize, loc_order CCTK_INT, dimension(2), intent(IN)...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Derivatives2_4_2.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine deriv2_gf_4_2 ( var, ni, nj, nk, dir, bb, gsize, delta, dvar2 ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: ni, nj, nk CCTK_REAL, dimension(ni,nj,nk), intent...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
call_up_derivs.c
#include <assert.h> #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "util_ErrorCodes.h" #include "util_Table.h" #include "stencil.h" void DiffUpGv ( const CCTK_POINTER_TO_CONST cctkGH_, const CCTK_INT dir, const CCTK_REAL *var, CCTK_REAL *dvar, const CCTK_REAL *up...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Dissipation_2_1_alt.F90
! $Header$ #include "cctk.h" #include "cctk_Parameters.h" subroutine dissipation_2_1_alt (var, ni, nj, nk, bb, gsize, offset, delta, epsilon, rhs) implicit none DECLARE_CCTK_PARAMETERS integer :: ni, nj, nk CCTK_REAL, dimension(ni,nj,nk), intent(in) :: var CCTK_REAL, dimension(ni,nj,nk), intent(inout) :...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Dissipation_8_4.F90
! $Header$ #include "cctk.h" #include "cctk_Parameters.h" subroutine dissipation_8_4 (var, ni, nj, nk, bb, gsize, offset, delta, epsilon, rhs) implicit none DECLARE_CCTK_PARAMETERS integer :: ni, nj, nk CCTK_REAL, dimension(ni,nj,nk), intent(in) :: var CCTK_REAL, dimension(ni,nj,nk), intent(inout) :: rh...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
dissipation_coeff.F90
! Arrays to store dissipation operator coefficients for the full restricted norm case. ! $Header$ #include "cctk.h" module dissipation_coeff type coefficients CCTK_REAL, dimension(:,:), pointer :: coeff end type coefficients type(coefficients), dimension(:), pointer :: xcoeff, ycoeff, zcoeff logical ::...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Derivatives2_2_1.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine deriv2_gf_2_1 ( var, ni, nj, nk, dir, bb, gsize, delta, dvar2 ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: ni, nj, nk CCTK_REAL, dimension(ni,nj,nk), intent...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Derivatives_4_3_min_err_coeff.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine deriv_gf_4_3_opt ( var, ni, nj, nk, dir, bb, gsize, offset, delta, dvar ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: ni, nj, nk CCTK_REAL, dimension(ni,nj,n...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
get_coeffs.c
#include <assert.h> #include <stdio.h> #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "util_ErrorCodes.h" #include "util_Table.h" #include "stencil.h" void DiffCoeff ( const CCTK_POINTER_TO_CONST cctkGH_, const CCTK_INT dir, const CCTK_INT nsize, CCTK_INT *imi...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
CheckGridSizes.F90
! Check if there are enough grid cells and ghost zones to compute the finite ! differences. ! $Header$ #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" subroutine SBP_CheckGridSizes(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_PARAMETERS DECLARE_CCTK_ARGUMEN...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
call_derivs.c
#include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "util_ErrorCodes.h" #include "util_Table.h" #include "stencil.h" void DiffGv ( const CCTK_POINTER_TO_CONST cctkGH_, const CCTK_INT dir, const CCTK_REAL *var, CCTK_REAL *dvar, const CCTK_INT table_handle )...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Derivatives_6_3_min_err_coeff.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine deriv_gf_6_3_opt ( var, ni, nj, nk, dir, bb, gsize, offset, delta, dvar ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: ni, nj, nk CCTK_REAL, dimension(ni,nj,n...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
get_up_coeffs.c
#include <assert.h> #include <stdio.h> #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "util_ErrorCodes.h" #include "util_Table.h" #include "stencil.h" void DiffUpCoeff ( const CCTK_POINTER_TO_CONST cctkGH_, const CCTK_INT dir, const CCTK_INT nsize, CCTK_INT ...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Coefficients2_6_3.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine set_coeff2_6_3 ( nsize, loc_order, bb, gsize, imin, imax, dd ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: nsize, loc_order CCTK_INT, dimension(2), intent(IN...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Derivatives_6_5_min_err_coeff.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine deriv_gf_6_5_opt ( var, ni, nj, nk, dir, bb, gsize, offset, delta, dvar ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: ni, nj, nk CCTK_REAL, dimension(ni,nj,n...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Coefficients_4.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine set_coeff_4 ( nsize, loc_order, bb, gsize, imin, imax, dd ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: nsize, loc_order CCTK_INT, dimension(2), intent(IN) :...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Dissipation_4_3_min_err_coeff_alt.F90
! $Header$ #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" subroutine dissipation_4_3_alt (var, lsh, gsh, lbnd, bb, gsize, offset, & delta, epsilon, dfl, npatches, patch, rhs) use dissipation_coeff implicit none DECLARE_CCTK_PARAMETERS DECLARE_CCT...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Derivatives2_4_2_min_err_coeff.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine deriv2_gf_4_2_opt ( var, ni, nj, nk, dir, bb, gsize, delta, dvar2 ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: ni, nj, nk CCTK_REAL, dimension(ni,nj,nk), in...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Coefficients2_2.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine set_coeff2_2 ( nsize, loc_order, bb, gsize, imin, imax, dd ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: nsize, loc_order CCTK_INT, dimension(2), intent(IN) ...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
DeltaInitial.F90
! Check if there are enough grid cells and ghost zones to compute the finite ! differences. ! $Header$ #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" subroutine SBP_DeltaInitial(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_PARAMETERS DECLARE_CCTK_ARGUMENTS...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
GetScalProdDiag.F90
! $Header$ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine SBP_GetScalProdDiag ( cctkGH, dir, nsize, sigmad ) implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_POINTER_TO_CONST, intent(IN) :: cctkGH CCTK_INT, intent(I...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
get_boundary_width.c
#include <assert.h> #include <stdio.h> #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "util_ErrorCodes.h" #include "util_Table.h" #include "stencil.h" void Get_Bound_Width ( const CCTK_POINTER_TO_CONST cctkGH_, CCTK_INT *bsize, const CCTK_INT table_handle...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Coefficients_6.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine set_coeff_6 ( nsize, loc_order, bb, gsize, imin, imax, dd ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: nsize, loc_order CCTK_INT, dimension(2), intent(IN) :...
CactusNumerical/SummationByParts
https://bitbucket.org/cactuscode/cactusnumerical.git
# Configuration definition for thorn SummationByParts # $Header$ PROVIDES SummationByParts { }
# Interface definition for thorn SummationByParts # $Header$ implements: SummationByParts #inherits: grid SUBROUTINE Diff_gf ( CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN dir, \ CCTK_STRING IN var_name, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Di...
# Parameter definitions for thorn SummationByParts # $Header$ restricted: KEYWORD norm_type "Type of norm" STEERABLE=always { "Diagonal" :: "Diagonal norm" "Full restricted" :: "Full restricted norm" } "Diagonal" KEYWORD operator_type "Type of operator" STEERABLE=always { "Minimal Bandwidth" :: "Minimal bandwi...
# Schedule definitions for thorn SummationByParts # $Header$ # Mask for norms STORAGE: normmask if (use_variable_deltas) { STORAGE: deltas } SCHEDULE SBP_SetNormMask AT basegrid { LANG: Fortran } "Setup the mask for the calculation of the norm" if (use_variable_deltas) { SCHEDULE SBP_DeltaInitial AT basegrid ...
Coefficients2_4_2.F90
#include "cctk.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine set_coeff2_4_2 ( nsize, loc_order, bb, gsize, imin, imax, dd ) use All_Coeffs_mod implicit none DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_INT, intent(IN) :: nsize, loc_order CCTK_INT, dimension(2), intent(IN...