Dataset Viewer
Auto-converted to Parquet Duplicate
thorn_name
stringlengths
13
37
url
stringclasses
8 values
configuration
stringclasses
9 values
interface
stringlengths
244
35.8k
param
stringlengths
61
40.1k
schedule
stringlengths
184
52.5k
src_filename
stringlengths
7
34
src_code
stringlengths
994
118k
context_filenames
stringlengths
15
1.89k
context
stringlengths
193
1.98M
doc_tex_content
stringclasses
10 values
doc_tex_filenames
stringclasses
5 values
readme_content
stringclasses
10 values
readme_filename
stringclasses
2 values
combined_doc_context
stringclasses
10 values
CactusExamples/SampleBoundary
https://bitbucket.org/cactuscode/cactusexamples.git
# Interface definition for thorn SampleBoundary # $Header$ implements: LinExtrapBnd CCTK_INT FUNCTION Boundary_RegisterPhysicalBC(CCTK_POINTER_TO_CONST IN GH, \ CCTK_INT IN CCTK_FPOINTER function_pointer(CCTK_POINTER_TO_CONST IN GH, \ CCTK_INT IN num_vars, \ CCTK_INT ARRAY IN var_indices, \ CCTK_INT ARRAY IN faces, \ CCTK_INT ARRAY IN boundary_widths, \ CCTK_INT ARRAY IN table_handles),\ CCTK_STRING IN bc_name) USES FUNCTION Boundary_RegisterPhysicalBC CCTK_INT FUNCTION \ SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH) USES FUNCTION SymmetryTableHandleForGrid
# Parameter definitions for thorn SampleBoundary # $Header$
# Schedule definitions for thorn SampleBoundary # $Header$ schedule SampleBoundary_RegisterBCs at CCTK_BASEGRID { lang: C } "Register boundary conditions that this thorn provides"
LinearExtrapBnd.c
/*@@ @file LinearExtrapBnd.c @date 24 Jan 2003 @author David Rideout @desc Function which is registered as handling Carsten Gundlach's "linear_extrap_one_bndry" boundary condition @enddesc @history @hdate @hauthor @hdesc @endhistory @version $Id$ @@*/ #include "cctk.h" #include "util_Table.h" /* the rcs ID and its dummy function to use it */ static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusExamples_SampleBoundary_LinearExtrapBnd_c); /* #define DEBUG */ /******************************************************************** ********************* Local Data Types *********************** ********************************************************************/ /******************************************************************** ********************* External Routine Prototypes ****************** ********************************************************************/ void CCTK_FCALL CCTK_FNAME(Linear_extrap_one_bndry)(int *doBC, const int *lsh, CCTK_REAL *var_ptr); int BndLinExtrap (const cGH *GH, int num_vars, int *vars, int *faces, int *widths, int *tables); /******************************************************************** ******************** Scheduled Routines *********************** ********************************************************************/ /******************************************************************** ******************** External Routines ************************ ********************************************************************/ /*@@ @routine BndLinExtrap @date 24 Jan 2003 @author David Rideout @desc Apply linear extrapolation boundary condition to a group of grid functions given by their indices. This routine is registered to handle the linear extrapolation boundary condition. Can only handle 3D grid functions. All symmetries are ignored for now -- the symmetry bcs must overwrite the output of this bc where necessary @enddesc @var GH @vdesc Pointer to CCTK grid hierarchy @vtype const cGH * @vio in @endvar @var num_vars @vdesc number of variables passed in through vars[] @vtype int @vio in @endvar @var var_indices @vdesc array of variable indicies to which to apply this boundary condition @vtype int * @vio in @endvar @var faces @vdesc array of set of faces to which to apply the bc @vtype int @vio in @endvar @var widths @vdesc array of boundary widths for each variable @vtype int @vio in @endvar @var table_handles @vdesc array of table handles which hold extra arguments @vtype int @vio in @endvar @calls CCTK_GroupIndexFromVarI CCTK_GroupDimI CCTK_VarTypeI Linear_extrap_one_bndry @history @hdate @hauthor @hdesc @endhistory @returntype int @returndesc each bit of return value indicates a possible error code, as follows: 0 for success -1 invalid faces specification -2 unsupported staggering -4 boundary width != 1 -8 potentially valid table handle -16 dimension is not supported -32 possibly called with a grid scalar @endreturndesc @@*/ int BndLinExtrap (const cGH *GH, int num_vars, int *vars, int *faces, int *widths, int *tables) { int i, j, gi, gtype, dim, retval, err; int doBC[6]; const int *lsh, *bbox; CCTK_INT symtable; CCTK_INT symbnd[6]; CCTK_INT is_physical[6]; CCTK_REAL *var_ptr; cGroupDynamicData group_data; retval = 0; #ifdef DEBUG printf("calling BndLinExtrap at iter %d\n", GH->cctk_iteration); #endif /* loop through variables, one at a time (since this is all that Linear_extrap_one_bndry can handle) */ for (i=0; i<num_vars; ++i) { /* Check to see if faces specification is valid */ if (faces[i] != CCTK_ALL_FACES) { CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING, "Faces specification %d for LinExtrap boundary conditions on " "%s is not implemented yet. " "Not applying bc.", faces[i], CCTK_VarName(vars[i])); retval |= 1; } /* Check to see if the boundary width might be something other than one */ if (widths[i] != 1) { CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING, "LinExtrapBnd does not handle boundary widths other than one." " Assuming boundary width of one on all faces."); retval |= 4; } /* Ignore table handles */ if (tables[i] >= 0) { CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, "Possibly valid table handle. LinExtrapBnd ignores " "information stored in tables."); retval |= 8; } /* Gather some important information about this grid variable */ gi = CCTK_GroupIndexFromVarI(vars[i]); gtype = CCTK_GroupTypeI(gi); if (gtype==CCTK_GF) { dim = GH->cctk_dim; bbox = GH->cctk_bbox; lsh = GH->cctk_lsh; } else { err = CCTK_GroupDynamicData(GH, gi, &group_data); if (err) { CCTK_VWarn(0, __LINE__, __FILE__, CCTK_THORNSTRING, "Error getting group information for group %s. " "Perhaps it is a grid scalar?", CCTK_GroupName(gi)); retval |= 32; } dim = group_data.dim; bbox = group_data.bbox; lsh = group_data.lsh; } var_ptr = GH->data[vars[i]][0]; #ifdef DEBUG printf("dim=%d bbox[0]=%d lsh[1]=%d\n", dim, bbox[0], lsh[1]); printf("var_ptr=%p\n", var_ptr); #endif /* Check dimension */ if (dim != 3) { CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, "Variable dimension of %d not supported. " "Not applying bc.", dim); retval |= 16; } /* Decide on which faces the bc should be applied */ for (j=0; j<2*dim; ++j) { doBC[j] = lsh[j/2] > widths[i]+2 && bbox[j]; } /* see if we have a physical boundary */ symtable = SymmetryTableHandleForGrid (GH); if (symtable < 0) CCTK_WARN (0, "internal error"); err = Util_TableGetIntArray (symtable, 2 * dim, symbnd, "symmetry_handle"); if (err != 2 * dim) CCTK_WARN (0, "internal error"); for (j = 0; j < 2 * dim; j++) { is_physical[j] = symbnd[j] < 0; } /* Only do bc on faces without a symmetry bc */ for (j=0; j<2*dim; ++j) { doBC[j] &= is_physical[i]; } /* Apply the boundary condition */ if( !( retval & ( 1 | 16 ) ) ) /* unless particularly bad errors */ CCTK_FNAME(Linear_extrap_one_bndry)(doBC, lsh, var_ptr); } return -retval; } /******************************************************************** ******************** Internal Routines ************************ ********************************************************************/ /******************************************************************** ********************* Local Routines ************************* ********************************************************************/
Register.c SampleBnd.h make.code.defn LinearExtrapBnd.F
Register.c: ``` /*@@ @file Register.c @date 6 May 2003 @author David Rideout @desc Register implemented boundary conditions. @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "SampleBnd.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusExamples_SampleBoundary_Register_c); /******************************************************************** ********************* Local Data Types *********************** ********************************************************************/ /******************************************************************** ********************* Local Routine Prototypes ********************* ********************************************************************/ /******************************************************************** ***************** Aliased Routine Prototypes *********************** ********************************************************************/ /******************************************************************** ***************** Scheduled Routine Prototypes ********************* ********************************************************************/ void SampleBoundary_RegisterBCs(CCTK_ARGUMENTS); /******************************************************************** ********************* Other Routine Prototypes ********************* ********************************************************************/ /******************************************************************** ********************* Local Data ***************************** ********************************************************************/ /******************************************************************** ********************* Aliased Routines *********************** ********************************************************************/ /******************************************************************** ********************* Scheduled Routines ********************* ********************************************************************/ /*@@ @routine SampleBoundary_RegisterBCs @date 6 May 2003 @author David Rideout @desc Register all boundary conditions implemented by this thorn. @enddesc @calls @history @endhistory @var CCTK_ARGUMENTS @vdesc Cactus argument list @vtype CCTK_* @vio in @endvar @returntype void @@*/ void SampleBoundary_RegisterBCs(CCTK_ARGUMENTS) { int err; err = Boundary_RegisterPhysicalBC((CCTK_POINTER) cctkGH, (phys_bc_fn_ptr) &BndLinExtrap, "LinExtrap"); if (err) { CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING, "Error %d when registering routine to handle \"LinExtrap\" " "boundary condition", err); } } /******************************************************************** ********************* Local Routines ************************* ********************************************************************/ ``` SampleBnd.h: ``` /*@@ @file SampleBnd.h @date 6 May 2003 @author David Rideout @desc Prototypes for boundary routines @enddesc @@*/ #ifndef _SAMPLEBND_H_ #define _SAMPLEBND_H_ #ifdef __cplusplus extern "C" { #endif /* data type for pointer to function which implements a physical boundary condition: */ typedef CCTK_INT (*const phys_bc_fn_ptr)(const CCTK_POINTER_TO_CONST, const CCTK_INT, const CCTK_INT *, const CCTK_INT *, const CCTK_INT *, const CCTK_INT *); /* prototype for routine registed as providing 'LinExtrap' boundary condition */ int BndLinExtrap (const CCTK_POINTER_TO_CONST GH, const CCTK_INT num_vars, const CCTK_INT *var_indices, const CCTK_INT *faces, const CCTK_INT *widths, const CCTK_INT *table_handles); #ifdef __cplusplus } #endif #endif /* _SAMPLEBND_H_ */ ``` make.code.defn: ``` # Main make.code.defn file for thorn SampleBoundary # $Header$ # Source files in this directory SRCS = Register.c LinearExtrapBnd.c LinearExtrapBnd.F # Subdirectories containing source files SUBDIRS = ``` LinearExtrapBnd.F: ``` c This subroutine linearly extrapolates one Cactus variable c on one boundary of the Cactus grid box. C $Header$ #include "cctk.h" subroutine Linear_extrap_one_bndry(doBC, lsh, var) implicit none integer doBC(6) integer lsh(3) CCTK_REAL var(lsh(1),lsh(2),lsh(3)) integer nx,ny,nz C Grid parameters. nx = lsh(1) ny = lsh(2) nz = lsh(3) C Linear extrapolation from the interiors to the boundaries. C Does not support octant or quadrant. C 6 faces. if (doBC(1).eq.1) then var(1,:,:) = 2.d0 * var(2,:,:) - var(3,:,:) endif if (doBC(3).eq.1) then var(:,1,:) = 2.d0 * var(:,2,:) - var(:,3,:) endif if (doBC(5).eq.1) then var(:,:,1) = 2.d0 * var(:,:,2) - var(:,:,3) endif if (doBC(2).eq.1) then var(nx,:,:) = 2.d0 * var(nx-1,:,:) - var(nx-2,:,:) endif if (doBC(4).eq.1) then var(:,ny,:) = 2.d0 * var(:,ny-1,:) - var(:,ny-2,:) endif if (doBC(6).eq.1) then var(:,:,nz) = 2.d0 * var(:,:,nz-1) - var(:,:,nz-2) endif C 12 edges. C 4 round face x=min. if ( doBC(1).eq.1 $ .and. doBC(3).eq.1) then var(1,1,:) = 2.d0 * var(2,2,:) - var(3,3,:) end if if ( doBC(1).eq.1 $ .and. doBC(4).eq.1) then var(1,ny,:) = 2.d0 * var(2,ny-1,:) - var(2,ny-2,:) end if if ( doBC(1).eq.1 $ .and. doBC(5).eq.1) then var(1,:,1) = 2.d0 * var(2,:,2) - var(3,:,3) end if if ( doBC(1).eq.1 $ .and. doBC(6).eq.1) then var(1,:,nz) = 2.d0 * var(2,:,nz-1) - var(3,:,nz-2) end if C 4 around face x=max. if ( doBC(2).eq.1 $ .and. doBC(3).eq.1) then var(nx,1,:) = 2.d0 * var(nx-1,2,:) - var(nx-2,3,:) end if if ( doBC(2).eq.1 $ .and. doBC(4).eq.1) then var(nx,ny,:) = 2.d0 * var(nx-1,ny-1,:) - var(nx-2,ny-2,:) end if if ( doBC(2).eq.1 $ .and. doBC(5).eq.1) then var(nx,:,1) = 2.d0 * var(nx-1,:,2) - var(nx-2,:,3) end if if ( doBC(2).eq.1 $ .and. doBC(6).eq.1) then var(nx,:,nz) = 2.d0 * var(nx-1,:,nz-1) - var(nx-2,:,nz-2) end if C Remaining 2 in y=min. if ( doBC(3).eq.1 .and. ny.ge.4 $ .and. doBC(5).eq.1) then var(:,1,1) = 2.d0 * var(:,2,2) - var(:,3,3) end if if ( doBC(3).eq.1 .and. ny.ge.4 $ .and. doBC(6).eq.1) then var(:,1,nz) = 2.d0 * var(:,2,nz-1) - var(:,2,nz-2) end if C Remaining 2 in y=ymax. if ( doBC(4).eq.1 .and. ny.ge.4 $ .and. doBC(5).eq.1) then var(:,ny,1) = 2.d0 * var(:,ny-1,2) - var(:,ny-2,3) end if if ( doBC(4).eq.1 .and. ny.ge.4 $ .and. doBC(6).eq.1) then var(:,ny,nz) = 2.d0 * var(:,ny-1,nz-1) - var(:,ny-2,nz-2) end if C 8 corners. if (doBC(1).eq.1 .and. doBC(3).eq.1 .and. doBC(5).eq.1) then var(1,1,1) = 2.d0*var(2,2,2) - var(3,3,3) end if if (doBC(1).eq.1 .and. doBC(3).eq.1 .and. doBC(6).eq.1) then var(1,1,nz) = 2.d0*var(2,2,nz-1) - var(3,3,nz-2) end if if (doBC(1).eq.1 .and. doBC(4).eq.1 .and. doBC(5).eq.1) then var(1,ny,1) = 2.d0*var(2,ny-1,2) - var(3,ny-2,3) end if if (doBC(1).eq.1 .and. doBC(4).eq.1 .and. doBC(6).eq.1) then var(1,ny,nz) = 2.d0*var(2,ny-1,nz-1) - var(3,ny-2,nz-2) end if if (doBC(2).eq.1 .and. doBC(3).eq.1 .and. doBC(5).eq.1) then var(nx,1,1) = 2.d0*var(nx-1,2,2) - var(nx-2,3,3) end if if (doBC(2).eq.1 .and. doBC(3).eq.1 .and. doBC(6).eq.1) then var(nx,1,nz) = 2.d0*var(nx-1,2,nz-1) - var(nx-2,3,nz-2) end if if (doBC(2).eq.1 .and. doBC(4).eq.1 .and. doBC(5).eq.1) then var(nx,ny,1) = 2.d0*var(nx-1,ny-1,2) - var(nx-2,ny-2,3) end if if (doBC(2).eq.1 .and. doBC(4).eq.1 .and. doBC(6).eq.1) then var(nx,ny,nz) = 2.d0*var(nx-1,ny-1,nz-1) - var(nx-2,ny-2,nz-2) end if return end ```
=== documentation.tex === \documentclass{article} % Use the Cactus ThornGuide style file % (Automatically used from Cactus distribution, if you have a % thorn without the Cactus Flesh download this from the Cactus % homepage at www.cactuscode.org) \usepackage{../../../../doc/latex/cactus} \begin{document} \title{Sample (Physical) Boundary Condition} \author{David Rideout} \date{$ $Date$ $} \maketitle % Do not delete next line % START CACTUS THORNGUIDE \begin{abstract} Provides a simple linear extrapolation boundary condition, to serve as an example for people who wish to write their own physical boundary conditions. \end{abstract} \section{Introduction} This thorn provides a linear extrapolation boundary condition in three dimensions. It is intended as an example for writing physical boundary conditions. (See the ThornGuide for \texttt{CactusBase/Boundary} for details on Cactus boundary conditions.) It is registered under the name \texttt{LinearExtrap}. The code which actually implements the boundary condition is written in fixed form Fortran 90, in the file \texttt{LinearExtrapBnd.F}. This code was written by Carsten Gundlach, and is taken directly from the thorn \texttt{AEIThorns/Exact}. As such it illustrates a simple way to properly implement a boundary condition using Fortran code which was written long before the current boundary implementation specification. \section{Obtaining This Thorn} This thorn is provided within the \texttt{CactusExamples} arrangement, in the standard Cactus distribution. \section{Some Details} The \texttt{LinearExtrap} boundary condition registered by this thorn only works in three dimensions. The value on a boundary face is determined by fitting a straight line through the two points 'inside' of the boundary point. For the edges and corners, two points along the diagonal are used to determine the line. In this way the thorn also provides an example of how to handle edges and corners, though only in a dimension specific way. \section{Using This Thorn} To use this thorn, simply activate it in your parameter file, select some variables for the \texttt{LinearExtrap} boundary condition, and be sure that \texttt{ApplyBCs} (as e.g. \texttt{MyThorn\_ApplyBCs}) is scheduled at an appropriate point. %\section{Numerical Implementation} %\subsection{Special Behaviour} %\subsection{Interaction With Other Thorns} %\subsection{Examples} %\subsection{Support and Feedback} %\subsection{Thorn Source Code} %\subsection{Thorn Documentation} %\subsection{Acknowledgements} %\begin{thebibliography}{9} %\end{thebibliography} %\section{History} % Do not delete next line % END CACTUS THORNGUIDE \end{document} % LocalWords: LinearExtrap LinearExtrapBnd MyThorn
documentation.tex
Cactus Code Thorn SampleBoundary Author(s) : Carsten Gundlach David Rideout Maintainer(s): Cactus team Licence : LGPL -------------------------------------------------------------------------- 1. Purpose This thorn provides a simple example of how to create and register a physical boundary condition. It implements a linear extrapolation boundary condition in three dimensions.
README
## README (README): ``` Cactus Code Thorn SampleBoundary Author(s) : Carsten Gundlach David Rideout Maintainer(s): Cactus team Licence : LGPL -------------------------------------------------------------------------- 1. Purpose This thorn provides a simple example of how to create and register a physical boundary condition. It implements a linear extrapolation boundary condition in three dimensions. ``` ## Documentation (.tex files): Files: documentation.tex ```tex === documentation.tex === \documentclass{article} % Use the Cactus ThornGuide style file % (Automatically used from Cactus distribution, if you have a % thorn without the Cactus Flesh download this from the Cactus % homepage at www.cactuscode.org) \usepackage{../../../../doc/latex/cactus} \begin{document} \title{Sample (Physical) Boundary Condition} \author{David Rideout} \date{$ $Date$ $} \maketitle % Do not delete next line % START CACTUS THORNGUIDE \begin{abstract} Provides a simple linear extrapolation boundary condition, to serve as an example for people who wish to write their own physical boundary conditions. \end{abstract} \section{Introduction} This thorn provides a linear extrapolation boundary condition in three dimensions. It is intended as an example for writing physical boundary conditions. (See the ThornGuide for \texttt{CactusBase/Boundary} for details on Cactus boundary conditions.) It is registered under the name \texttt{LinearExtrap}. The code which actually implements the boundary condition is written in fixed form Fortran 90, in the file \texttt{LinearExtrapBnd.F}. This code was written by Carsten Gundlach, and is taken directly from the thorn \texttt{AEIThorns/Exact}. As such it illustrates a simple way to properly implement a boundary condition using Fortran code which was written long before the current boundary implementation specification. \section{Obtaining This Thorn} This thorn is provided within the \texttt{CactusExamples} arrangement, in the standard Cactus distribution. \section{Some Details} The \texttt{LinearExtrap} boundary condition registered by this thorn only works in three dimensions. The value on a boundary face is determined by fitting a straight line through the two points 'inside' of the boundary point. For the edges and corners, two points along the diagonal are used to determine the line. In this way the thorn also provides an example of how to handle edges and corners, though only in a dimension specific way. \section{Using This Thorn} To use this thorn, simply activate it in your parameter file, select some variables for the \texttt{LinearExtrap} boundary condition, and be sure that \texttt{ApplyBCs} (as e.g. \texttt{MyThorn\_ApplyBCs}) is scheduled at an appropriate point. %\section{Numerical Implementation} %\subsection{Special Behaviour} %\subsection{Interaction With Other Thorns} %\subsection{Examples} %\subsection{Support and Feedback} %\subsection{Thorn Source Code} %\subsection{Thorn Documentation} %\subsection{Acknowledgements} %\begin{thebibliography}{9} %\end{thebibliography} %\section{History} % Do not delete next line % END CACTUS THORNGUIDE \end{document} % LocalWords: LinearExtrap LinearExtrapBnd MyThorn ```
CactusExamples/WaveMoL
https://bitbucket.org/cactuscode/cactusexamples.git
# Configuration definition for thorn BSSN_MoL # $Header$ REQUIRES CartGrid3D Boundary
# Interface definition for thorn WaveMoL # $Header$ implements: wavemol USES INCLUDE: Symmetry.h CCTK_INT FUNCTION MoLRegisterEvolvedGroup(CCTK_INT IN EvolvedIndex, \ CCTK_INT IN RHSIndex) CCTK_INT FUNCTION MoLRegisterConstrained(CCTK_INT IN ConstrainedIndex) REQUIRES FUNCTION MoLRegisterEvolvedGroup REQUIRES FUNCTION MoLRegisterConstrained CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \ CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \ CCTK_STRING IN var_name, CCTK_STRING IN bc_name) REQUIRES FUNCTION Boundary_SelectGroupForBC public cctk_real scalarevolvemol_scalar type = GF Timelevels = 3 tags='tensortypealias="Scalar"' { phi phit } "The scalar field and time derivative" cctk_real scalarevolvemol_vector type = GF Timelevels = 3 tags='tensortypealias="U"' { phix phiy phiz } "The scalar field spatial derivatives" cctk_real scalarrhsmol_scalar type = GF Timelevels = 1 { phirhs phitrhs } "The right hand side for the scalar field" cctk_real scalarrhsmol_vector type = GF Timelevels = 1 { phixrhs phiyrhs phizrhs } "The right hand side for the scalar field derivatives" cctk_real energy type = GF Timelevels = 1 "The energy of the field"
# Parameter definitions for thorn WaveMoL # $Header$ shares: MethodOfLines USES CCTK_INT MoL_Num_Evolved_Vars USES CCTK_INT MoL_Num_Constrained_Vars USES CCTK_INT MoL_Num_SaveAndRestore_Vars restricted: CCTK_INT WaveMoL_MaxNumEvolvedVars "The maximum number of evolved variables used by WaveMoL" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Evolved_Vars { 5:5 :: "Just 5: phi and the four derivatives" } 5 CCTK_INT WaveMoL_MaxNumConstrainedVars "The maximum number of constrained variables used by WaveMoL" ACCUMULATOR-BASE=MethodofLines::MoL_Num_Constrained_Vars { 1:1 :: "The energy" } 1 private: KEYWORD bound "Type of boundary condition to use" { "none" :: "No boundary condition" "flat" :: "Flat boundary condition" "radiation" :: "Radiation boundary condition" } "none"
# Schedule definitions for thorn WaveMoL # $Header$ STORAGE: scalarevolvemol_scalar[3], scalarevolvemol_vector[3] STORAGE: scalarrhsmol_scalar, scalarrhsmol_vector STORAGE: energy schedule WaveMoL_Startup at STARTUP { LANG: C } "Register Banner" schedule WaveMoL_InitSymBound at BASEGRID { LANG: C OPTIONS: META } "Schedule symmetries" schedule WaveMoL_RegisterVars in MoL_Register { LANG: C OPTIONS: META } "Register variables for MoL" schedule WaveMoL_CalcRHS in MoL_CalcRHS { LANG: C } "Register RHS calculation for MoL" schedule WaveMoL_Energy in MoL_PostStep { LANG: C } "Calculate the energy" schedule WaveMoL_Energy at POSTINITIAL { LANG: C } "Calculate the energy" schedule WaveMoL_Boundaries in MoL_PostStep { LANG: C OPTIONS: LEVEL SYNC: scalarevolvemol_scalar SYNC: scalarevolvemol_vector } "Register boundary enforcement in MoL" schedule GROUP ApplyBCs as WaveMoL_ApplyBCs in MoL_PostStep after WaveMoL_Boundaries { } "Apply boundary conditions for WaveMoL"
WaveMoLRegister.c
/*@@ @file WaveMoLRegister.c @date Fri Nov 9 13:47:07 2001 @author Ian Hawke @desc Routine to register the variables with the MoL thorn. @enddesc @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusExamples_WaveMoL_WaveMoLRegister_c) /* #ifndef DEBUG_MOL #define DEBUG_MOL #endif */ void WaveMoL_RegisterVars(CCTK_ARGUMENTS); /*@@ @routine WaveMoL_RegisterVars @date Fri Nov 9 13:47:41 2001 @author Ian Hawke @desc The registration routine. @enddesc @calls @calledby @history @endhistory @@*/ void WaveMoL_RegisterVars(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; CCTK_INT ierr = 0, group, rhs, var; group = CCTK_GroupIndex("wavemol::scalarevolvemol_scalar"); rhs = CCTK_GroupIndex("wavemol::scalarrhsmol_scalar"); if (CCTK_IsFunctionAliased("MoLRegisterEvolvedGroup")) { ierr += MoLRegisterEvolvedGroup(group, rhs); } else { CCTK_WARN(0, "MoL function not aliased"); ierr++; } group = CCTK_GroupIndex("wavemol::scalarevolvemol_vector"); rhs = CCTK_GroupIndex("wavemol::scalarrhsmol_vector"); if (CCTK_IsFunctionAliased("MoLRegisterEvolvedGroup")) { ierr += MoLRegisterEvolvedGroup(group, rhs); } else { CCTK_WARN(0, "MoL function MoLRegisterEvolvedGroup not aliased"); ierr++; } var = CCTK_VarIndex("wavemol::energy"); if (CCTK_IsFunctionAliased("MoLRegisterConstrained")) { ierr += MoLRegisterConstrained(var); } else { CCTK_WARN(0, "MoL function MoLRegisterConstrained not aliased"); ierr++; } if (ierr) CCTK_WARN(0,"Problems registering with MoL"); #ifdef DEBUG_MOL printf("If we've got this far, then we've done with wavetoy registration.\n"); #endif }
WaveMoL.c make.code.defn InitSymBound.c Startup.c
WaveMoL.c: ``` /*@@ @file WaveMoL.c @date Fri Nov 9 13:33:25 2001 @author Ian Hawke @desc The equivalent of WaveToy.c @enddesc @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" /* #ifndef DEBUG_MOL #define DEBUG_MOL #endif */ static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusExamples_WaveMoL_WaveMoL_c) void WaveMoL_Boundaries(CCTK_ARGUMENTS); void WaveMoL_CalcRHS(CCTK_ARGUMENTS); void WaveMoL_Energy(CCTK_ARGUMENTS); /*@@ @routine WaveMoL_Boundaries @date Fri Nov 9 13:34:47 2001 @author Ian Hawke @desc A slight alteration of the standard routine. Note that I haven't set up the error checking correctly as yet. @enddesc @calls @calledby @history @endhistory @@*/ void WaveMoL_Boundaries(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; int ierr=-1; #ifdef DEBUG_MOL printf("We've reached the Boundary enforcement; step must be done!\n"); #endif /* Uses all default arguments, so invalid table handle -1 can be passed */ ierr = Boundary_SelectGroupForBC (cctkGH, CCTK_ALL_FACES, 1, -1, "wavemol::scalarevolvemol_scalar", bound); if (ierr < 0) { CCTK_WARN(0,"Boundary conditions not applied - giving up!"); } ierr = Boundary_SelectGroupForBC (cctkGH, CCTK_ALL_FACES, 1, -1, "wavemol::scalarevolvemol_vector", bound); if (ierr < 0) { CCTK_WARN(0,"Boundary conditions not applied - giving up!"); } return; } /*@@ @routine WaveMoL_CalcRHS @date Fri Nov 9 13:37:27 2001 @author Ian Hawke @desc The routine that calculates the RHS of the PDE for the MoL step. @enddesc @calls @calledby @history @endhistory @@*/ void WaveMoL_CalcRHS(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; int i,j,k; int index; int istart, jstart, kstart, iend, jend, kend; CCTK_REAL dx,dy,dz; CCTK_REAL hdxi, hdyi, hdzi; /* Set up shorthands */ dx = CCTK_DELTA_SPACE(0); dy = CCTK_DELTA_SPACE(1); dz = CCTK_DELTA_SPACE(2); hdxi = 0.5 / dx; hdyi = 0.5 / dy; hdzi = 0.5 / dz; istart = 1; jstart = 1; kstart = 1; iend = cctk_lsh[0]-1; jend = cctk_lsh[1]-1; kend = cctk_lsh[2]-1; /* Calculate the right hand sides. */ #ifdef DEBUG_MOL printf("About to loop.\n"); #endif for (k=0; k<cctk_lsh[2]; k++) { for (j=0; j<cctk_lsh[1]; j++) { for (i=0; i<cctk_lsh[0]; i++) { index = CCTK_GFINDEX3D(cctkGH,i,j,k); phirhs[index] = phit[index]; phitrhs[index] = 0; phixrhs[index] = 0; phiyrhs[index] = 0; phizrhs[index] = 0; } } } for (k=kstart; k<kend; k++) { for (j=jstart; j<jend; j++) { for (i=istart; i<iend; i++) { index = CCTK_GFINDEX3D(cctkGH,i,j,k); phitrhs[index] = (phix[CCTK_GFINDEX3D(cctkGH, i+1, j, k)] - phix[CCTK_GFINDEX3D(cctkGH, i-1, j, k)]) *hdxi + (phiy[CCTK_GFINDEX3D(cctkGH, i, j+1, k)] - phiy[CCTK_GFINDEX3D(cctkGH, i, j-1, k)]) *hdyi + (phiz[CCTK_GFINDEX3D(cctkGH, i, j, k+1)] - phiz[CCTK_GFINDEX3D(cctkGH, i, j, k-1)]) *hdzi; phixrhs[index] = (phit[CCTK_GFINDEX3D(cctkGH, i+1, j, k)] - phit[CCTK_GFINDEX3D(cctkGH, i-1, j, k)]) *hdxi; phiyrhs[index] = (phit[CCTK_GFINDEX3D(cctkGH, i, j+1, k)] - phit[CCTK_GFINDEX3D(cctkGH, i, j-1, k)]) *hdyi; phizrhs[index] = (phit[CCTK_GFINDEX3D(cctkGH, i, j, k+1)] - phit[CCTK_GFINDEX3D(cctkGH, i, j, k-1)]) *hdzi; #ifdef DEBUG_MOL printf("ijk %i %i %i, phitrhs %f\n",i,j,k,phitrhs[index]); #endif } } } #ifdef DEBUG_MOL printf("Done with loop\n"); #endif return; } /*@@ @routine WaveMoL_Energy @date Sat Jun 26 15:39:18 2004 @author Ian Hawke @desc Computes the energy d_t phi ^2 + d_x^i phi ^2. An illustration of using constrained MoL variables rather than anything useful. @enddesc @calls @calledby @history @endhistory @@*/ void WaveMoL_Energy(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; int i,j,k; int index; for (k=0; k<cctk_lsh[2]; k++) { for (j=0; j<cctk_lsh[1]; j++) { for (i=0; i<cctk_lsh[0]; i++) { index = CCTK_GFINDEX3D(cctkGH,i,j,k); energy[index] = phit[index]*phit[index] + phix[index]*phix[index] + phiy[index]*phiy[index] + phiz[index]*phiz[index]; } } } } ``` make.code.defn: ``` # Main make.code.defn file for thorn WaveMoL # $Header$ # Source files in this directory SRCS = WaveMoL.c InitSymBound.c Startup.c WaveMoLRegister.c # Subdirectories containing source files SUBDIRS = ``` InitSymBound.c: ``` /*@@ @file InitSymBound.c @date Fri Nov 9 13:29:53 2001 @author Ian Hawke @desc Sets the symmetries for Wave Toy - again copies the standard. @enddesc @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "Symmetry.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusExamples_WaveMoL_InitSymBound_c) void WaveMoL_InitSymBound(CCTK_ARGUMENTS); /*@@ @routine WaveMoL_InitSymBound @date Fri Nov 9 13:31:28 2001 @author Ian Hawke @desc Another straight copy of a wave toy routine, however extended for all the new GFs. @enddesc @calls @calledby @history @endhistory @@*/ void WaveMoL_InitSymBound(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; int sym[3]; sym[0] = 1; sym[1] = 1; sym[2] = 1; SetCartSymVN(cctkGH, sym,"wavemol::phi"); SetCartSymVN(cctkGH, sym,"wavemol::phit"); sym[0] = -1; sym[1] = 1; sym[2] = 1; SetCartSymVN(cctkGH, sym,"wavemol::phix"); sym[0] = 1; sym[1] = -1; sym[2] = 1; SetCartSymVN(cctkGH, sym,"wavemol::phiy"); sym[0] = 1; sym[1] = 1; sym[2] = -1; SetCartSymVN(cctkGH, sym,"wavemol::phiz"); return; } ``` Startup.c: ``` /*@@ @file Startup.c @date Fri Nov 9 13:27:48 2001 @author Ian Hawke @desc Register banner - a straight copy of WaveToy. @enddesc @@*/ #include "cctk.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusExamples_WaveMoL_Startup_c) int WaveMoL_Startup(void); /*@@ @routine WaveMoL_Startup @date Fri Nov 9 13:28:58 2001 @author Ian Hawke @desc Again a straight copy of WaveToyC @enddesc @calls @calledby @history @endhistory @@*/ int WaveMoL_Startup(void) { const char *banner = "WaveMoL: Evolutions of a Scalar Field"; CCTK_RegisterBanner(banner); return 0; } ```
=== documentation.tex === % *======================================================================* % Cactus Thorn template for ThornGuide documentation % Author: Ian Kelley % Date: Sun Jun 02, 2002 % $Header$ % % Thorn documentation in the latex file doc/documentation.tex % will be included in ThornGuides built with the Cactus make system. % The scripts employed by the make system automatically include % pages about variables, parameters and scheduling parsed from the % relevent thorn CCL files. % % This template contains guidelines which help to assure that your % documentation will be correctly added to ThornGuides. More % information is available in the Cactus UsersGuide. % % Guidelines: % - Do not change anything before the line % % START CACTUS THORNGUIDE", % except for filling in the title, author, date etc. fields. % - Each of these fields should only be on ONE line. % - Author names should be sparated with a \\ or a comma % - You can define your own macros, but they must appear after % the START CACTUS THORNGUIDE line, and must not redefine standard % latex commands. % - To avoid name clashes with other thorns, 'labels', 'citations', % 'references', and 'image' names should conform to the following % convention: % ARRANGEMENT_THORN_LABEL % For example, an image wave.eps in the arrangement CactusWave and % thorn WaveToyC should be renamed to CactusWave_WaveToyC_wave.eps % - Graphics should only be included using the graphix package. % More specifically, with the "includegraphics" command. Do % not specify any graphic file extensions in your .tex file. This % will allow us (later) to create a PDF version of the ThornGuide % via pdflatex. | % - References should be included with the latex "bibitem" command. % - Use \begin{abstract}...\end{abstract} instead of \abstract{...} % - Do not use \appendix, instead include any appendices you need as % standard sections. % - For the benefit of our Perl scripts, and for future extensions, % please use simple latex. % % *======================================================================* % % Example of including a graphic image: % \begin{figure}[ht] % \begin{center} % \includegraphics[width=6cm]{MyArrangement_MyThorn_MyFigure} % \end{center} % \caption{Illustration of this and that} % \label{MyArrangement_MyThorn_MyLabel} % \end{figure} % % Example of using a label: % \label{MyArrangement_MyThorn_MyLabel} % % Example of a citation: % \cite{MyArrangement_MyThorn_Author99} % % Example of including a reference % \bibitem{MyArrangement_MyThorn_Author99} % {J. Author, {\em The Title of the Book, Journal, or periodical}, 1 (1999), % 1--16. {\tt http://www.nowhere.com/}} % % *======================================================================* % If you are using CVS use this line to give version information % $Header$ \documentclass{article} % Use the Cactus ThornGuide style file % (Automatically used from Cactus distribution, if you have a % thorn without the Cactus Flesh download this from the Cactus % homepage at www.cactuscode.org) \usepackage{../../../../doc/latex/cactus} \begin{document} % The author of the documentation \author{Ian Hawke} % The title of the document (not necessarily the name of the Thorn) \title{The scalar wave equation in Method of Lines form} % the date your document was last changed, if your document is in CVS, % please use: \date{$ $Date$ $} \maketitle % Do not delete next line % START CACTUS THORNGUIDE % Add all definitions used in this documentation here % \def\mydef etc % Add an abstract for this thorn's documentation \begin{abstract} WaveMoL is an example implementation of a thorn that uses the method of lines thorn MoL. The wave equation in first order form is implemented. \end{abstract} % The following sections are suggestive only. % Remove them or add your own. % \section{Introduction} % \section{Physical System} % \section{Numerical Implementation} % \section{Using This Thorn} % \subsection{Obtaining This Thorn} % \subsection{Basic Usage} % \subsection{Special Behaviour} % \subsection{Interaction With Other Thorns} % \subsection{Examples} % \subsection{Support and Feedback} % \section{History} % \subsection{Thorn Source Code} % \subsection{Thorn Documentation} % \subsection{Acknowledgements} \section{Purpose} \label{sec:purpose} WaveToy is the simple test thorn that comes with Cactus as standard. This is written so that it solves the wave equation \begin{equation} \label{eq:wave1} \partial_t^2 \phi = \partial_{x^i}^2 \phi^i \end{equation} directly using the leapfrog scheme. This form of the equations isn't suitable for use with the method of lines. The purpose of this thorn is to rewrite the equations in first order form \begin{eqnarray} \label{eq:wave2} \partial_t \Phi & = & \partial_{x^i} \Pi^i, \\ \partial_t \Pi^j & = & \partial_{x^j} \Phi, \\ \partial_t \phi & = & \Phi, \\ \partial_{x^j} \phi & = & \Pi^j. \end{eqnarray} The first three equations (which expand to five separate PDEs) will be evolved. The final equation is used to set the initial data and can be thought of as a constraint. This will be implemented using simple second order differencing in space. Time evolution is performed by the method of lines thorn MoL. \section{How it works} \label{sec:details} The equations are evolved entirely using the method of lines thorn. So all we have to provide (for the evolution) is a method of calculating the right hand side of equation~(\ref{eq:wave2}) and boundary conditions. The boundary conditions are standard from wavetoy itself. The right hand side is calculated using second order centred finite differences. To be compatible with the method of lines thorn we must let it know that the GFs $(\phi, \Pi, \Phi^j)$ exist and where they are stored. They should all have at least two time levels (although the addition of extra time levels may not cause problems it's just wasting space). The GFs corresponding to the right hand sides must also be registered with the MoL thorn. These should only have one time level. MoL is informed of the existence of these grid functions through the accumulator parameters and the aliased functions. % Do not delete next line % END CACTUS THORNGUIDE \end{document}
documentation.tex
Cactus Code Thorn WaveMoL Author(s) : Ian Hawke Maintainer(s): Cactus team Licence : LGPL -------------------------------------------------------------------------- 1. Purpose This implements the wave equation in FOSH form for use with the Method of Lines thorn. Intended as a basic test.
README
## README (README): ``` Cactus Code Thorn WaveMoL Author(s) : Ian Hawke Maintainer(s): Cactus team Licence : LGPL -------------------------------------------------------------------------- 1. Purpose This implements the wave equation in FOSH form for use with the Method of Lines thorn. Intended as a basic test. ``` ## Documentation (.tex files): Files: documentation.tex ```tex === documentation.tex === % *======================================================================* % Cactus Thorn template for ThornGuide documentation % Author: Ian Kelley % Date: Sun Jun 02, 2002 % $Header$ % % Thorn documentation in the latex file doc/documentation.tex % will be included in ThornGuides built with the Cactus make system. % The scripts employed by the make system automatically include % pages about variables, parameters and scheduling parsed from the % relevent thorn CCL files. % % This template contains guidelines which help to assure that your % documentation will be correctly added to ThornGuides. More % information is available in the Cactus UsersGuide. % % Guidelines: % - Do not change anything before the line % % START CACTUS THORNGUIDE", % except for filling in the title, author, date etc. fields. % - Each of these fields should only be on ONE line. % - Author names should be sparated with a \\ or a comma % - You can define your own macros, but they must appear after % the START CACTUS THORNGUIDE line, and must not redefine standard % latex commands. % - To avoid name clashes with other thorns, 'labels', 'citations', % 'references', and 'image' names should conform to the following % convention: % ARRANGEMENT_THORN_LABEL % For example, an image wave.eps in the arrangement CactusWave and % thorn WaveToyC should be renamed to CactusWave_WaveToyC_wave.eps % - Graphics should only be included using the graphix package. % More specifically, with the "includegraphics" command. Do % not specify any graphic file extensions in your .tex file. This % will allow us (later) to create a PDF version of the ThornGuide % via pdflatex. | % - References should be included with the latex "bibitem" command. % - Use \begin{abstract}...\end{abstract} instead of \abstract{...} % - Do not use \appendix, instead include any appendices you need as % standard sections. % - For the benefit of our Perl scripts, and for future extensions, % please use simple latex. % % *======================================================================* % % Example of including a graphic image: % \begin{figure}[ht] % \begin{center} % \includegraphics[width=6cm]{MyArrangement_MyThorn_MyFigure} % \end{center} % \caption{Illustration of this and that} % \label{MyArrangement_MyThorn_MyLabel} % \end{figure} % % Example of using a label: % \label{MyArrangement_MyThorn_MyLabel} % % Example of a citation: % \cite{MyArrangement_MyThorn_Author99} % % Example of including a reference % \bibitem{MyArrangement_MyThorn_Author99} % {J. Author, {\em The Title of the Book, Journal, or periodical}, 1 (1999), % 1--16. {\tt http://www.nowhere.com/}} % % *======================================================================* % If you are using CVS use this line to give version information % $Header$ \documentclass{article} % Use the Cactus ThornGuide style file % (Automatically used from Cactus distribution, if you have a % thorn without the Cactus Flesh download this from the Cactus % homepage at www.cactuscode.org) \usepackage{../../../../doc/latex/cactus} \begin{document} % The author of the documentation \author{Ian Hawke} % The title of the document (not necessarily the name of the Thorn) \title{The scalar wave equation in Method of Lines form} % the date your document was last changed, if your document is in CVS, % please use: \date{$ $Date$ $} \maketitle % Do not delete next line % START CACTUS THORNGUIDE % Add all definitions used in this documentation here % \def\mydef etc % Add an abstract for this thorn's documentation \begin{abstract} WaveMoL is an example implementation of a thorn that uses the method of lines thorn MoL. The wave equation in first order form is implemented. \end{abstract} % The following sections are suggestive only. % Remove them or add your own. % \section{Introduction} % \section{Physical System} % \section{Numerical Implementation} % \section{Using This Thorn} % \subsection{Obtaining This Thorn} % \subsection{Basic Usage} % \subsection{Special Behaviour} % \subsection{Interaction With Other Thorns} % \subsection{Examples} % \subsection{Support and Feedback} % \section{History} % \subsection{Thorn Source Code} % \subsection{Thorn Documentation} % \subsection{Acknowledgements} \section{Purpose} \label{sec:purpose} WaveToy is the simple test thorn that comes with Cactus as standard. This is written so that it solves the wave equation \begin{equation} \label{eq:wave1} \partial_t^2 \phi = \partial_{x^i}^2 \phi^i \end{equation} directly using the leapfrog scheme. This form of the equations isn't suitable for use with the method of lines. The purpose of this thorn is to rewrite the equations in first order form \begin{eqnarray} \label{eq:wave2} \partial_t \Phi & = & \partial_{x^i} \Pi^i, \\ \partial_t \Pi^j & = & \partial_{x^j} \Phi, \\ \partial_t \phi & = & \Phi, \\ \partial_{x^j} \phi & = & \Pi^j. \end{eqnarray} The first three equations (which expand to five separate PDEs) will be evolved. The final equation is used to set the initial data and can be thought of as a constraint. This will be implemented using simple second order differencing in space. Time evolution is performed by the method of lines thorn MoL. \section{How it works} \label{sec:details} The equations are evolved entirely using the method of lines thorn. So all we have to provide (for the evolution) is a method of calculating the right hand side of equation~(\ref{eq:wave2}) and boundary conditions. The boundary conditions are standard from wavetoy itself. The right hand side is calculated using second order centred finite differences. To be compatible with the method of lines thorn we must let it know that the GFs $(\phi, \Pi, \Phi^j)$ exist and where they are stored. They should all have at least two time levels (although the addition of extra time levels may not cause problems it's just wasting space). The GFs corresponding to the right hand sides must also be registered with the MoL thorn. These should only have one time level. MoL is informed of the existence of these grid functions through the accumulator parameters and the aliased functions. % Do not delete next line % END CACTUS THORNGUIDE \end{document} ```
CactusWave/WaveToyExtra
https://bitbucket.org/cactuscode/cactuswave.git
# Interface definition for thorn WaveToyExtra # $Header$ implements: wavetoyextra inherits: wavetoy CCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \ CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \ CCTK_STRING IN var_name, CCTK_STRING IN bc_name) REQUIRES FUNCTION Boundary_SelectVarForBC
# Parameter definitions for thorn WaveToyExtra # $Header$ SHARES: wavetoy EXTENDS KEYWORD bound { "custom" :: "custom boundary condition" } private: STRING custom_bound "Custom boundary condition to use" { .* :: "Any valid boundary condition" } "" STRING custom_options "Table string for custom boundary condition" { .* :: "Any valid table string" } ""
# Schedule definitions for thorn WaveToyExtra # $Header$ schedule WaveToyExtra_Boundary at EVOL AFTER WaveToy_Evolution BEFORE WaveToy_Boundaries { LANG: C } "Additional boundary conditions for 3D wave equation" schedule WaveToyExtra_Boundary at POSTRESTRICT BEFORE WaveToy_Boundaries { LANG: C } "Additional boundary conditions for 3D wave equation" schedule WaveToyC_Terminate at TERMINATE { LANG: C } "Tidy up"
Boundary.c
/*@@ @file Boundary.c @date Friday 18th July 2003 @author Gabrielle Allen @desc Use any provided boundary condition with WaveToy @enddesc @version $Id$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "util_Table.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusWave_WaveToyExtra_Boundary_c); /******************************************************************** ********************* Local Data Types *********************** ********************************************************************/ /******************************************************************** ********************* Local Routine Prototypes ********************* ********************************************************************/ /******************************************************************** ********************* Other Routine Prototypes ********************* ********************************************************************/ void WaveToyExtra_Boundary(CCTK_ARGUMENTS); /******************************************************************** ********************* Local Data ***************************** ********************************************************************/ static int handle=-1; /******************************************************************** ********************* External Routines ********************** ********************************************************************/ /*@@ @routine WaveToyC_Boundary @date Friday 18th July 2003 @author Gabrielle Allen @desc Mark wavetoy variables for custom boundary condition @enddesc @history @endhistory @@*/ void WaveToyExtra_Boundary(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; CCTK_INT ierr=0; if (CCTK_EQUALS(bound,"custom")) { if (!CCTK_EQUALS(custom_options,"")) { if (handle == -1) { handle = Util_TableCreateFromString(custom_options); if (handle < 0) { CCTK_VWarn(0,__LINE__,__FILE__,CCTK_THORNSTRING, "WaveToyC_Boundaries: Error creating table for " "boundary condition %s",custom_bound); } } } ierr = Boundary_SelectVarForBC(cctkGH, CCTK_ALL_FACES, 1, handle, "wavetoy::phi",custom_bound); } if (ierr < 0) { CCTK_VWarn(0,__LINE__,__FILE__,CCTK_THORNSTRING, "WaveToyC_Boundaries: Error selecting boundary " "condition %s",bound); } return; } /*@@ @routine WaveToyC_Terminate @date Friday 18th July 2003 @author Gabrielle Allen @desc Tidy up wavetoy @enddesc @history @endhistory @@*/ void WaveToyC_Terminate(CCTK_ARGUMENTS) { Util_TableDestroy(handle); }
make.code.defn
make.code.defn: ``` # Main make.code.defn file for thorn WaveToyExtra # $Header$ # Source files in this directory SRCS = Boundary.c # Subdirectories containing source files SUBDIRS = ```
=== documentation.tex === % $Header$ \documentclass{article} % Use the Cactus ThornGuide style file % (Automatically used from Cactus distribution, if you have a % thorn without the Cactus Flesh download this from the Cactus % homepage at www.cactuscode.org) \usepackage{../../../../doc/latex/cactus} \begin{document} % The author of the documentation \author{Cactus Maintainers \textless cactusmaint@cactuscode.org\textgreater} % The title of the document (not necessarily the name of the Thorn) \title{} % the date your document was last changed, if your document is in CVS, % please use: \date{$ $Date$ $} \maketitle % Do not delete next line % START CACTUS THORNGUIDE % Add all definitions used in this documentation here % \def\mydef etc % Add an abstract for this thorn's documentation \begin{abstract} Advanced features for WaveToy \end{abstract} % The following sections are suggestive only. % Remove them or add your own. \section{Introduction} This thorn contains enhancements to the standard WaveToy thorns for modelling 3D scalar fields. WaveToy is primarily intended as a example thorn and for that reason is deliberately kept as simple as practical, with more advanced features included here instead. Currently this thorn shows how more flexible boundaries can be used with WaveToy or other thorns. \section{Boundary Conditions} This thorn provides the infrastructure to use any registered external boundary condition with WaveToy, with any choice of options. % Do not delete next line % END CACTUS THORNGUIDE \end{document}
documentation.tex
Cactus Code Thorn WaveToyExtra Author(s) : Cactus team Maintainer(s): Cactus team Licence : LGPL -------------------------------------------------------------------------- 1. Purpose Additional functionality for the WaveToy example - custom boundary conditions
README
## README (README): ``` Cactus Code Thorn WaveToyExtra Author(s) : Cactus team Maintainer(s): Cactus team Licence : LGPL -------------------------------------------------------------------------- 1. Purpose Additional functionality for the WaveToy example - custom boundary conditions ``` ## Documentation (.tex files): Files: documentation.tex ```tex === documentation.tex === % $Header$ \documentclass{article} % Use the Cactus ThornGuide style file % (Automatically used from Cactus distribution, if you have a % thorn without the Cactus Flesh download this from the Cactus % homepage at www.cactuscode.org) \usepackage{../../../../doc/latex/cactus} \begin{document} % The author of the documentation \author{Cactus Maintainers \textless cactusmaint@cactuscode.org\textgreater} % The title of the document (not necessarily the name of the Thorn) \title{} % the date your document was last changed, if your document is in CVS, % please use: \date{$ $Date$ $} \maketitle % Do not delete next line % START CACTUS THORNGUIDE % Add all definitions used in this documentation here % \def\mydef etc % Add an abstract for this thorn's documentation \begin{abstract} Advanced features for WaveToy \end{abstract} % The following sections are suggestive only. % Remove them or add your own. \section{Introduction} This thorn contains enhancements to the standard WaveToy thorns for modelling 3D scalar fields. WaveToy is primarily intended as a example thorn and for that reason is deliberately kept as simple as practical, with more advanced features included here instead. Currently this thorn shows how more flexible boundaries can be used with WaveToy or other thorns. \section{Boundary Conditions} This thorn provides the infrastructure to use any registered external boundary condition with WaveToy, with any choice of options. % Do not delete next line % END CACTUS THORNGUIDE \end{document} ```
CactusWave/WaveToyFreeF90
https://bitbucket.org/cactuscode/cactuswave.git
# Configuration definition for thorn CactusWave/WaveToyFreeF90 # $Header$ REQUIRES CartGrid3D
# Interface definition for thorn WaveToyFreeF90 # $Header$ implements: wavetoy inherits: grid USES INCLUDE: Symmetry.h public: cctk_real scalarevolve type=GF Timelevels=3 { phi } "The evolved scalar field" CCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \ CCTK_INT IN faces, CCTK_INT IN boundary_width, CCTK_INT IN table_handle, \ CCTK_STRING IN var_name, CCTK_STRING IN bc_name) REQUIRES FUNCTION Boundary_SelectVarForBC
# Parameter definitions for thorn WaveToyFreeF90 # $Header$ restricted: KEYWORD bound "Type of boundary condition to use" { "none" :: "Apply no boundary condition" "flat" :: "Flat (von Neumann, n grad phi = 0) boundary condition" "static" :: "Static (Dirichlet, dphi/dt=0) boundary condition" "radiation" :: "Radiation boundary condition" "robin" :: "Robin (phi(r) = C/r) boundary condition" "zero" :: "Zero (Dirichlet, phi=0) boundary condition" } "none"
# Schedule definitions for thorn WaveToyFreeF90 # $Header$ STORAGE: scalarevolve[3] schedule WaveToyFreeF90_Startup at STARTUP { LANG: Fortran } "Register banner" schedule WaveToyFreeF90_InitSymBound at BASEGRID { LANG: Fortran } "Schedule symmetries" schedule WaveToyFreeF90_Evolution as WaveToy_Evolution at EVOL { LANG: Fortran SYNC: scalarevolve } "Evolution of 3D wave equation" schedule WaveToyFreeF90_Boundaries as WaveToy_Boundaries at EVOL AFTER WaveToy_Evolution { LANG: Fortran OPTIONS: level } "Boundaries of 3D wave equation" schedule GROUP ApplyBCs as WaveToyFreeF90_ApplyBCs at EVOL after WaveToy_Boundaries { } "Apply boundary conditions" schedule WaveToyFreeF90_Boundaries as WaveToy_Boundaries at POSTRESTRICT { LANG: Fortran OPTIONS: level } "Boundaries of 3D wave equation" schedule GROUP ApplyBCs as WaveToyFreeF90_ApplyBCs at POSTRESTRICT after WaveToy_Boundaries { } "Apply boundary conditions"
WaveToy.F90
/*@@ @file WaveToy.F90 @date @author Tom Goodale @desc Evolution routines for the wave equation solver @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" /*@@ @routine WaveToyFreeF90_Evolution @date @author Tom Goodale @desc Evolution for the wave equation @enddesc @calls CCTK_SyncGroup, wavetoy_boundaries @calledby @history @endhistory @@*/ subroutine WaveToyFreeF90_Evolution(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_PARAMETERS ! Declare local variables INTEGER :: i,j,k INTEGER :: istart, jstart, kstart, iend, jend, kend CCTK_REAL :: dx,dy,dz,dt CCTK_REAL :: dx2,dy2,dz2,dt2 CCTK_REAL :: dx2i,dy2i,dz2i CCTK_REAL :: factor ! Set up shorthands ! ----------------- dx = CCTK_DELTA_SPACE(1) dy = CCTK_DELTA_SPACE(2) dz = CCTK_DELTA_SPACE(3) dt = CCTK_DELTA_TIME dx2 = dx*dx dy2 = dy*dy dz2 = dz*dz dt2 = dt*dt dx2i = 1.0/dx2 dy2i = 1.0/dy2 dz2i = 1.0/dz2 istart = 2 jstart = 2 kstart = 2 iend = cctk_lsh(1)-1 jend = cctk_lsh(2)-1 kend = cctk_lsh(3)-1 factor = 2*(1 - (dt2)*(dx2i + dy2i + dz2i)) ! Do the evolution ! ---------------- do k = kstart, kend do j = jstart, jend do i = istart, iend phi(i,j,k) = factor*phi_p(i,j,k) - & phi_p_p(i,j,k) + (dt2) * & ((phi_p(i+1,j,k)+phi_p(i-1,j,k))*dx2i & +(phi_p(i,j+1,k)+phi_p(i,j-1,k))*dy2i & +(phi_p(i,j,k+1)+phi_p(i,j,k-1))*dz2i) end do end do end do end subroutine WaveToyFreeF90_Evolution /*@@ @routine WaveToyFortran_Boundaries @date @author Tom Goodale @desc Boundary conditions for the wave equation @enddesc @calls CartSymGH,FlatBC,RadiativeBC @calledby @history @endhistory @@*/ subroutine WaveToyFreeF90_Boundaries(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_PARAMETERS DECLARE_CCTK_FUNCTIONS CCTK_INT, parameter :: izero = 0 integer, parameter :: ik = kind(izero) ! Local declarations CCTK_INT :: ierr CHARACTER (len=100) :: boundary INTEGER :: length ierr = 0 ! The "bound" parameter needs to be converted into a Fortran string. call CCTK_FortranString(length,bound,boundary) ! Apply the outer boundary conditions ! ----------------------------------- ! Note: In each of the following calls to Boundary_SelectVarForBC, ! default arguments are used, so an invalid table handle of -1 can ! be passed if (CCTK_EQUALS(bound,"flat") .or. CCTK_EQUALS(bound,"static") .or. & CCTK_EQUALS(bound,"radiation") .or. CCTK_EQUALS(bound,"robin") .or. & CCTK_EQUALS(bound,"none") ) then ierr = Boundary_SelectVarForBC(cctkGH, int(CCTK_ALL_FACES,ik), 1_ik, -1_ik, & "wavetoy::phi", boundary) else if (CCTK_EQUALS(bound,"zero")) then ierr = Boundary_SelectVarForBC(cctkGH, int(CCTK_ALL_FACES,ik), 1_ik, -1_ik, & "wavetoy::phi", "Scalar") end if if (ierr < 0) then call CCTK_WARN(0,"WaveToyFreeF90_Boundaries: Error selecting boundary condition") end if end subroutine WaveToyFreeF90_Boundaries
InitSymBound.F90 Startup.F90 make.code.defn
InitSymBound.F90: ``` /*@@ @file InitSymBound.F90 @date @author Gabrielle Allen @desc Sets the symmetries across the coordinate axes @enddesc @@*/ #include "cctk.h" #include "cctk_Arguments.h" /*@@ @routine WaveToyFreeF90_InitSymBound @date @author Gabrielle Allen @desc Sets the symmetries for Wave Toy @enddesc @calls @calledby @history @endhistory @@*/ subroutine WaveToyFreeF90_InitSymBound(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_ARGUMENTS INTEGER :: ierr INTEGER, DIMENSION(3) :: sym = 1 call SetCartSymVN(ierr, cctkGH, sym, 'wavetoy::phi') end subroutine WaveToyFreeF90_InitSymbound ``` Startup.F90: ``` /*@@ @file Startup.F90 @date @author Gabrielle Allen @desc Register banner @enddesc @version $Header$ @@*/ #include "cctk.h" integer function WaveToyFreeF90_Startup () implicit none integer ierr call CCTK_RegisterBanner(ierr, "WaveToyFreeF90: Evolutions of a Scalar Field") WaveToyFreeF90_Startup = 0 end function WaveToyFreeF90_Startup ``` make.code.defn: ``` # Main make.code.defn file for thorn WaveToy # $Header$ # Source files in this directory SRCS = InitSymBound.F90 WaveToy.F90 Startup.F90 # Subdirectories containing source files SUBDIRS = ```
=== documentation.tex === % *======================================================================* % Cactus Thorn template for ThornGuide documentation % Author: Ian Kelley % Date: Sun Jun 02, 2002 % $Header$ % % Thorn documentation in the latex file doc/documentation.tex % will be included in ThornGuides built with the Cactus make system. % The scripts employed by the make system automatically include % pages about variables, parameters and scheduling parsed from the % relevent thorn CCL files. % % This template contains guidelines which help to assure that your % documentation will be correctly added to ThornGuides. More % information is available in the Cactus UsersGuide. % % Guidelines: % - Do not change anything before the line % % BEGIN CACTUS THORNGUIDE", % except for filling in the title, author, date etc. fields. % - You can define your own macros are OK, but they must appear after % the BEGIN CACTUS THORNGUIDE line, and do not redefine standard % latex commands. % - To avoid name clashes with other thorns, 'labels', 'citations', % 'references', and 'image' names should conform to the following % convention: % ARRANGEMENT_THORN_LABEL % For example, an image wave.eps in the arrangement CactusWave and % thorn WaveToyC should be renamed to CactusWave_WaveToyC_wave.eps % - Graphics should only be included using the graphix package. % More specifically, with the "includegraphics" command. Do % not specify any graphic file extensions in your .tex file. This % will allow us (later) to create a PDF version of the ThornGuide % via pdflatex. | % - References should be included with the latex "bibitem" command. % - For the benefit of our Perl scripts, and for future extensions, % please use simple latex. % % *======================================================================* % % Example of including a graphic image: % \begin{figure}[ht] % \begin{center} % \includegraphics[width=6cm]{MyArrangement_MyThorn_MyFigure} % \end{center} % \caption{Illustration of this and that} % \label{MyArrangement_MyThorn_MyLabel} % \end{figure} % % Example of using a label: % \label{MyArrangement_MyThorn_MyLabel} % % Example of a citation: % \cite{MyArrangement_MyThorn_Author99} % % Example of including a reference % \bibitem{MyArrangement_MyThorn_Author99} % {J. Author, {\em The Title of the Book, Journal, or periodical}, 1 (1999), % 1--16. {\tt http://www.nowhere.com/}} % % *======================================================================* % If you are using CVS use this line to give version information % $Header$ \documentclass{article} % Use the Cactus ThornGuide style file % (Automatically used from Cactus distribution, if you have a % thorn without the Cactus Flesh download this from the Cactus % homepage at www.cactuscode.org) \usepackage{../../../../doc/latex/cactus} \begin{document} % The author of the documentation \author{} % The title of the document (not necessarily the name of the Thorn) \title{} % the date your document was last changed, if your document is in CVS, % please us: % \date{$ $Date$ $} \date{} \maketitle % Do not delete next line % START CACTUS THORNGUIDE % Add all definitions used in this documentation here % \def\mydef etc % Add an abstract for this thorn's documentation \begin{abstract} \end{abstract} % The following sections are suggestive only. % Remove them or add your own. \section{Introduction} \section{Physical System} \section{Numerical Implementation} \section{Using This Thorn} \subsection{Obtaining This Thorn} \subsection{Basic Usage} \subsection{Special Behaviour} \subsection{Interaction With Other Thorns} \subsection{Support and Feedback} \section{History} \subsection{Thorn Source Code} \subsection{Thorn Documentation} \subsection{Acknowledgements} \begin{thebibliography}{9} \end{thebibliography} % Do not delete next line % END CACTUS THORNGUIDE \end{document}
documentation.tex
Cactus Code Thorn WaveToyFreeF90 Author(s) : Tom Goodale Erik Schnetter Maintainer(s): Cactus team Licence : LGPL -------------------------------------------------------------------------- 1. Purpose This thorn solves the linear wave equation, using free form (as opposed to fixed form) Fortran 90.
README
## README (README): ``` Cactus Code Thorn WaveToyFreeF90 Author(s) : Tom Goodale Erik Schnetter Maintainer(s): Cactus team Licence : LGPL -------------------------------------------------------------------------- 1. Purpose This thorn solves the linear wave equation, using free form (as opposed to fixed form) Fortran 90. ``` ## Documentation (.tex files): Files: documentation.tex ```tex === documentation.tex === % *======================================================================* % Cactus Thorn template for ThornGuide documentation % Author: Ian Kelley % Date: Sun Jun 02, 2002 % $Header$ % % Thorn documentation in the latex file doc/documentation.tex % will be included in ThornGuides built with the Cactus make system. % The scripts employed by the make system automatically include % pages about variables, parameters and scheduling parsed from the % relevent thorn CCL files. % % This template contains guidelines which help to assure that your % documentation will be correctly added to ThornGuides. More % information is available in the Cactus UsersGuide. % % Guidelines: % - Do not change anything before the line % % BEGIN CACTUS THORNGUIDE", % except for filling in the title, author, date etc. fields. % - You can define your own macros are OK, but they must appear after % the BEGIN CACTUS THORNGUIDE line, and do not redefine standard % latex commands. % - To avoid name clashes with other thorns, 'labels', 'citations', % 'references', and 'image' names should conform to the following % convention: % ARRANGEMENT_THORN_LABEL % For example, an image wave.eps in the arrangement CactusWave and % thorn WaveToyC should be renamed to CactusWave_WaveToyC_wave.eps % - Graphics should only be included using the graphix package. % More specifically, with the "includegraphics" command. Do % not specify any graphic file extensions in your .tex file. This % will allow us (later) to create a PDF version of the ThornGuide % via pdflatex. | % - References should be included with the latex "bibitem" command. % - For the benefit of our Perl scripts, and for future extensions, % please use simple latex. % % *======================================================================* % % Example of including a graphic image: % \begin{figure}[ht] % \begin{center} % \includegraphics[width=6cm]{MyArrangement_MyThorn_MyFigure} % \end{center} % \caption{Illustration of this and that} % \label{MyArrangement_MyThorn_MyLabel} % \end{figure} % % Example of using a label: % \label{MyArrangement_MyThorn_MyLabel} % % Example of a citation: % \cite{MyArrangement_MyThorn_Author99} % % Example of including a reference % \bibitem{MyArrangement_MyThorn_Author99} % {J. Author, {\em The Title of the Book, Journal, or periodical}, 1 (1999), % 1--16. {\tt http://www.nowhere.com/}} % % *======================================================================* % If you are using CVS use this line to give version information % $Header$ \documentclass{article} % Use the Cactus ThornGuide style file % (Automatically used from Cactus distribution, if you have a % thorn without the Cactus Flesh download this from the Cactus % homepage at www.cactuscode.org) \usepackage{../../../../doc/latex/cactus} \begin{document} % The author of the documentation \author{} % The title of the document (not necessarily the name of the Thorn) \title{} % the date your document was last changed, if your document is in CVS, % please us: % \date{$ $Date$ $} \date{} \maketitle % Do not delete next line % START CACTUS THORNGUIDE % Add all definitions used in this documentation here % \def\mydef etc % Add an abstract for this thorn's documentation \begin{abstract} \end{abstract} % The following sections are suggestive only. % Remove them or add your own. \section{Introduction} \section{Physical System} \section{Numerical Implementation} \section{Using This Thorn} \subsection{Obtaining This Thorn} \subsection{Basic Usage} \subsection{Special Behaviour} \subsection{Interaction With Other Thorns} \subsection{Support and Feedback} \section{History} \subsection{Thorn Source Code} \subsection{Thorn Documentation} \subsection{Acknowledgements} \begin{thebibliography}{9} \end{thebibliography} % Do not delete next line % END CACTUS THORNGUIDE \end{document} ```
EinsteinAnalysis/AHFinder
https://bitbucket.org/einsteintoolkit/einsteinanalysis.git
# Configuration definition for thorn CactusEinstein/AHFinder # $Header$ REQUIRES CartGrid3D
"# Interface definition for thorn AHFinder\n# $Header$\n\n\nimplements: AHFinder\ninherits: ADMBase (...TRUNCATED)
"# Parameter definitions for thorn AHFinder\n# $Header$\n\n\n#################################\n### (...TRUNCATED)
"# Schedule definitions for thorn AHFinder\n#c/*@@\n#c @date July 1999\n#c @author Lars Nerge(...TRUNCATED)
AHFinder_dis.F
"/*@@\n @file AHFinder_dis.F\n @date September 2001\n @author Miguel Alcubierre\n @(...TRUNCATED)
"AHFinder_shift.F\nAHFinder_mask.F\nAHFinder_int.F\nAHFinder_min.F\nAHFinder_gau.F\nAHFinder.F\nAHFi(...TRUNCATED)
"AHFinder_shift.F:\n```\n/*@@\n @file AHFinder_shift.F\n @date May 2000\n @author Mi(...TRUNCATED)
"=== documentation.tex ===\n% *=====================================================================(...TRUNCATED)
documentation.tex
"Cactus Code Thorn AHFinder\nAuthor(s) : Miguel Alcubierre\nMaintainer(s): Cactus team\nLicence (...TRUNCATED)
README
"## README (README):\n```\nCactus Code Thorn AHFinder\nAuthor(s) : Miguel Alcubierre\nMaintainer((...TRUNCATED)
EinsteinAnalysis/AHFinder
https://bitbucket.org/einsteintoolkit/einsteinanalysis.git
# Configuration definition for thorn CactusEinstein/AHFinder # $Header$ REQUIRES CartGrid3D
"# Interface definition for thorn AHFinder\n# $Header$\n\n\nimplements: AHFinder\ninherits: ADMBase (...TRUNCATED)
"# Parameter definitions for thorn AHFinder\n# $Header$\n\n\n#################################\n### (...TRUNCATED)
"# Schedule definitions for thorn AHFinder\n#c/*@@\n#c @date July 1999\n#c @author Lars Nerge(...TRUNCATED)
AHFinder_calcsigma.F
"/*@@\n @file AHFinder_calcsigma.F\n @date July 1999\n @author Lars Nerger\n @desc (...TRUNCATED)
"AHFinder_shift.F\nAHFinder_mask.F\nAHFinder_int.F\nAHFinder_min.F\nAHFinder_gau.F\nAHFinder_dis.F\n(...TRUNCATED)
"AHFinder_shift.F:\n```\n/*@@\n @file AHFinder_shift.F\n @date May 2000\n @author Mi(...TRUNCATED)
"=== documentation.tex ===\n% *=====================================================================(...TRUNCATED)
documentation.tex
"Cactus Code Thorn AHFinder\nAuthor(s) : Miguel Alcubierre\nMaintainer(s): Cactus team\nLicence (...TRUNCATED)
README
"## README (README):\n```\nCactus Code Thorn AHFinder\nAuthor(s) : Miguel Alcubierre\nMaintainer((...TRUNCATED)
EinsteinEvolve/GRHydro
https://bitbucket.org/einsteintoolkit/einsteinevolve.git
"# Configuration definition for thorn GRHydro\n# $Header$\n\nREQUIRES EOS_Omni Boundary CartGrid3D S(...TRUNCATED)
"# Interface definition for thorn GRHydro\n\n#######################################################(...TRUNCATED)
"# Parameter definitions for thorn GRHydro\n# $Header$\n\nshares:ADMBase\n\nUSES int initial_shift \(...TRUNCATED)
"# Schedule definitions for thorn GRHydro\n# $Header$\n\n###########################################(...TRUNCATED)
GRHydro_Jacobian_state.c
"#include <assert.h>\n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n#include \"cctk_Paramete(...TRUNCATED)
"GRHydro_Con2PrimM_pt.c\nGRHydro_MP5Reconstruct.F90\nGRHydro_HLLC.F90\nGRHydro_UtilsM.F90\nGRHydro_B(...TRUNCATED)
"GRHydro_Con2PrimM_pt.c:\n```\n/********************************************************************(...TRUNCATED)
"=== staggering.tex ===\n\\documentclass{article}\n\\begin{document}\nIn what follows, we assume sec(...TRUNCATED)
staggering.tex, documentation.tex
"Cactus Code Thorn GRHydro\nAuthor(s) : Luca Baiotti\n Ian Hawke\n Pe(...TRUNCATED)
README
"## README (README):\n```\nCactus Code Thorn GRHydro\nAuthor(s) : Luca Baiotti\n Ia(...TRUNCATED)
EinsteinEvolve/GRHydro
https://bitbucket.org/einsteintoolkit/einsteinevolve.git
"# Configuration definition for thorn GRHydro\n# $Header$\n\nREQUIRES EOS_Omni Boundary CartGrid3D S(...TRUNCATED)
"# Interface definition for thorn GRHydro\n\n#######################################################(...TRUNCATED)
"# Parameter definitions for thorn GRHydro\n# $Header$\n\nshares:ADMBase\n\nUSES int initial_shift \(...TRUNCATED)
"# Schedule definitions for thorn GRHydro\n# $Header$\n\n###########################################(...TRUNCATED)
GRHydro_PPMReconstruct_drv_opt.F90
" /*@@\n @file GRHydro_PPMReconstruct_drv.F90\n @date Tue Jul 19 13:22:03 EDT 2011\n (...TRUNCATED)
"GRHydro_Con2PrimM_pt.c\nGRHydro_MP5Reconstruct.F90\nGRHydro_HLLC.F90\nGRHydro_UtilsM.F90\nGRHydro_B(...TRUNCATED)
"GRHydro_Con2PrimM_pt.c:\n```\n/********************************************************************(...TRUNCATED)
"=== staggering.tex ===\n\\documentclass{article}\n\\begin{document}\nIn what follows, we assume sec(...TRUNCATED)
staggering.tex, documentation.tex
"Cactus Code Thorn GRHydro\nAuthor(s) : Luca Baiotti\n Ian Hawke\n Pe(...TRUNCATED)
README
"## README (README):\n```\nCactus Code Thorn GRHydro\nAuthor(s) : Luca Baiotti\n Ia(...TRUNCATED)
EinsteinEvolve/GRHydro
https://bitbucket.org/einsteintoolkit/einsteinevolve.git
"# Configuration definition for thorn GRHydro\n# $Header$\n\nREQUIRES EOS_Omni Boundary CartGrid3D S(...TRUNCATED)
"# Interface definition for thorn GRHydro\n\n#######################################################(...TRUNCATED)
"# Parameter definitions for thorn GRHydro\n# $Header$\n\nshares:ADMBase\n\nUSES int initial_shift \(...TRUNCATED)
"# Schedule definitions for thorn GRHydro\n# $Header$\n\n###########################################(...TRUNCATED)
GRHydro_Con2PrimM_polytype_pt.c
"/***********************************************************************************\n Copyright(...TRUNCATED)
"GRHydro_Con2PrimM_pt.c\nGRHydro_MP5Reconstruct.F90\nGRHydro_HLLC.F90\nGRHydro_UtilsM.F90\nGRHydro_B(...TRUNCATED)
"GRHydro_Con2PrimM_pt.c:\n```\n/********************************************************************(...TRUNCATED)
"=== staggering.tex ===\n\\documentclass{article}\n\\begin{document}\nIn what follows, we assume sec(...TRUNCATED)
staggering.tex, documentation.tex
"Cactus Code Thorn GRHydro\nAuthor(s) : Luca Baiotti\n Ian Hawke\n Pe(...TRUNCATED)
README
"## README (README):\n```\nCactus Code Thorn GRHydro\nAuthor(s) : Luca Baiotti\n Ia(...TRUNCATED)
EinsteinEvolve/GRHydro
https://bitbucket.org/einsteintoolkit/einsteinevolve.git
"# Configuration definition for thorn GRHydro\n# $Header$\n\nREQUIRES EOS_Omni Boundary CartGrid3D S(...TRUNCATED)
"# Interface definition for thorn GRHydro\n\n#######################################################(...TRUNCATED)
"# Parameter definitions for thorn GRHydro\n# $Header$\n\nshares:ADMBase\n\nUSES int initial_shift \(...TRUNCATED)
"# Schedule definitions for thorn GRHydro\n# $Header$\n\n###########################################(...TRUNCATED)
GRHydro_Marquina.F90
" /*@@\n @file GRHydro_Marquina.f90\n @date Thu Jan 11 11:03:32 2002\n @author (...TRUNCATED)
"GRHydro_Con2Prim.F90\nGRHydro_Macros.h\nGRHydro_Jacobian_state.c\nGRHydro_Reconstruct_drv_cxx.hh\nG(...TRUNCATED)
"GRHydro_Con2Prim.F90:\n```\n/*@@\n @file GRHydro_RegisterVars.c\n @date Sat Jan 26 01(...TRUNCATED)
"=== staggering.tex ===\n\\documentclass{article}\n\\begin{document}\nIn what follows, we assume sec(...TRUNCATED)
staggering.tex, documentation.tex
"Cactus Code Thorn GRHydro\nAuthor(s) : Luca Baiotti\n Ian Hawke\n Pe(...TRUNCATED)
README
"## README (README):\n```\nCactus Code Thorn GRHydro\nAuthor(s) : Luca Baiotti\n Ia(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4