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
CactusPUGH/PUGHReduce
https://bitbucket.org/cactuscode/cactuspugh.git
# Configuration definitions for thorn PUGHReduce # $Header$ REQUIRES PUGH OPTIONAL MPI { }
# Interface definition for thorn PUGHReduce # $Header$ Implements: Reduce
# Parameter definitions for thorn PUGHReduce # $Header$
# Schedule definitions for thorn PUGHReduce # $Header$ schedule PUGHReduce_Startup at STARTUP { LANG:C } "Startup routine"
ReduceArraysGlobally.c
/*@@ @file ReduceArraysGlobally.c @date @author Yaakoub Y El Khamra @desc New global local array reduction implementation @enddesc @version $Header$ @@*/ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <float.h> #include "util_Tab...
CactusPUGH/PUGHReduce
https://bitbucket.org/cactuscode/cactuspugh.git
# Configuration definitions for thorn PUGHReduce # $Header$ REQUIRES PUGH OPTIONAL MPI { }
# Interface definition for thorn PUGHReduce # $Header$ Implements: Reduce
# Parameter definitions for thorn PUGHReduce # $Header$
# Schedule definitions for thorn PUGHReduce # $Header$ schedule PUGHReduce_Startup at STARTUP { LANG:C } "Startup routine"
Startup.c
/*@@ @file Startup.c @date Wed Feb 3 23:10:19 1999 @author Tom Goodale @desc Startup routines for PUGHReduce. @enddesc @version $Header$ @@*/ #include "cctk.h" #include "pugh_reductions.h" static const char *rcsid="$Header$"; CCTK_FILEVERSION(CactusPUGH_PUGHReduce_Sta...
CactusPUGH/PUGHSlab
https://bitbucket.org/cactuscode/cactuspugh.git
# Configuration definitions for thorn PUGHSlab # $Header$ REQUIRES PUGH OPTIONAL MPI { }
# Interface definition for thorn PUGHSlab # $Header$ Implements: Hyperslab CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN timelevel, \ ...
# Parameter definitions for thorn Hyperslab # $Header$
# Schedule definitions for thorn Hyperslab # $Header$
PUGHSlab.h
/*@@ @header PUGHSlab.h @date Sun 28 May 2000 @author Thomas Radke @desc Global function declarations of thorn PUGHSlab @enddesc @version $Header$ @@*/ #ifndef _PUGHSLAB_PUGHSLAB_H_ #define _PUGHSLAB_PUGHSLAB_H_ 1 #ifdef __cplusplus extern "C" { #endif /* prototype of ...
CactusPUGH/PUGHSlab
https://bitbucket.org/cactuscode/cactuspugh.git
# Configuration definitions for thorn PUGHSlab # $Header$ REQUIRES PUGH OPTIONAL MPI { }
# Interface definition for thorn PUGHSlab # $Header$ Implements: Hyperslab CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN timelevel, \ ...
# Parameter definitions for thorn Hyperslab # $Header$
# Schedule definitions for thorn Hyperslab # $Header$
make.code.defn
# Main make.code.defn file for thorn Hyperslab # $Header$ # Source files in this directory SRCS = Mapping.c GetHyperslab.c DatatypeConversion.c
CactusPUGH/PUGHSlab
https://bitbucket.org/cactuscode/cactuspugh.git
# Configuration definitions for thorn PUGHSlab # $Header$ REQUIRES PUGH OPTIONAL MPI { }
# Interface definition for thorn PUGHSlab # $Header$ Implements: Hyperslab CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN timelevel, \ ...
# Parameter definitions for thorn Hyperslab # $Header$
# Schedule definitions for thorn Hyperslab # $Header$
PUGHSlabi.h
/*@@ @header PUGHSlabi.h @date Sun 28 May 2000 @author Thomas Radke @desc Internal function declarations of thorn PUGHSlab @enddesc @version $Header$ @@*/ #ifndef _PUGHSLAB_PUGHSLABI_H_ #define _PUGHSLAB_PUGHSLABI_H_ 1 #include "cctk_Groups.h" #include "PUGHSlab.h" #i...
CactusPUGH/PUGHSlab
https://bitbucket.org/cactuscode/cactuspugh.git
# Configuration definitions for thorn PUGHSlab # $Header$ REQUIRES PUGH OPTIONAL MPI { }
# Interface definition for thorn PUGHSlab # $Header$ Implements: Hyperslab CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN timelevel, \ ...
# Parameter definitions for thorn Hyperslab # $Header$
# Schedule definitions for thorn Hyperslab # $Header$
Mapping.c
/*@@ @file Mapping.c @date Sun 2 Dec 2001 @author Thomas Radke @desc Routines to define hyperslab mappings @enddesc @version $Id$ @@*/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "util_Table.h" #include "CactusPUGH/PUGH/src/i...
CactusPUGH/PUGHSlab
https://bitbucket.org/cactuscode/cactuspugh.git
# Configuration definitions for thorn PUGHSlab # $Header$ REQUIRES PUGH OPTIONAL MPI { }
# Interface definition for thorn PUGHSlab # $Header$ Implements: Hyperslab CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN timelevel, \ ...
# Parameter definitions for thorn Hyperslab # $Header$
# Schedule definitions for thorn Hyperslab # $Header$
GetHyperslab.c
/*@@ @file GetHyperslab.c @date Sun 2 Dec 2001 @author Thomas Radke @desc Routines to extract hyperslabs from CCTK array variables @enddesc @version $Id$ @@*/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Parameters.h" #i...
CactusPUGH/PUGHSlab
https://bitbucket.org/cactuscode/cactuspugh.git
# Configuration definitions for thorn PUGHSlab # $Header$ REQUIRES PUGH OPTIONAL MPI { }
# Interface definition for thorn PUGHSlab # $Header$ Implements: Hyperslab CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN timelevel, \ ...
# Parameter definitions for thorn Hyperslab # $Header$
# Schedule definitions for thorn Hyperslab # $Header$
DatatypeConversion.c
/*@@ @file DatatypeConversion.c @date Thursday Nov 23 2000 @author Thomas Radke @desc Predefined datatype conversion routines for hyperslab extraction. @enddesc @version $Id$ @@*/ #include <stddef.h> #include "cctk.h" #include "PUGHSlab.h" #include "PUGHSlabi.h" /* ...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
make.configuration.defn
# make.configuration.defn for IOHDF5 # $Header$ # add the recombiner and the IEEEIO converter to the Cactus utitlity tools ALL_UTILS += hdf5_recombiner hdf5_convert_from_carpetiohdf5 ifneq ($(strip $(HAVE_FLEXIO)), ) ALL_UTILS += hdf5_convert_from_ieeeio endif ifneq ($(strip $(HAVE_SDF)), ) ALL_UTILS += hdf5_con...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
ioHDF5GH.h
/*@@ @header ioHDF5GH.h @date Jun 20 2000 @author Thomas Radke @desc The extensions to the GH structure from IOHDF5. @enddesc @version $Header$ @@*/ #ifndef _IOHDF5_IOHDF5GH_H_ #define _IOHDF5_IOHDF5GH_H_ 1 #include "StoreNamedData.h" #include "CactusPUGHIO/IOHDF5Util/sr...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
DumpGH.c
/*@@ @file DumpGH.c @date Wed Jun 10 14:13:35 1998 @author Paul Walker @desc Checkpoint routines scheduled at CCTK_CPINITIAL, CCTK_CHECKPOINT, and CCTK_TERMINATE. They check the IO checkpointing parameters and - if it's time to do so - ca...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
RecoverGH.c
/*@@ @file RecoverGH.c @date Fri Jun 19 09:14:22 1998 @author Tom Goodale @desc Contains the routines to recover from a HDF5 checkpoint file. Currently can recover from: (1) One file containing recombined data (2) Multiple unrecombin...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
make.configuration.deps
# make.configuration.deps for IOHDF5 # $Header$ IOHDF5_BUILD_DIR = $(BUILD_DIR)/IOHDF5 IOHDF5_SRC_DIR = $(PACKAGE_DIR)/CactusPUGHIO/IOHDF5/src/util IOHDF5_CFLAGS = -DCCODE $(CFLAGS) IOHDF5_LDFLAGS = $(IOHDF5_CFLAGS) $(DEBUG_LD) $(LDFLAGS) $(EXTRAFLAGS) $(HDF5_LIB_DIRS:%=-L%) $(HDF5_LIBS:%=-l%) # Extend CFLAGS if ...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
WriteIsosurface.c
/*@@ @file WriteIsosurface.c @date Sat Mar 25 2000 @author Thomas Radke @desc Output routine for isosurfaces in HDF5 fiber bundle format. @enddesc @version $Id$ @@*/ #include <stdlib.h> #include <string.h> #include "cctk.h" #include "ioHDF5GH.h" /* the rcs ID and it...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
make.code.defn
# Main make.code.defn file for thorn IOHFD5 # $Header$ # Source files in this directory SRCS = Startup.c Output.c Write.c DumpGH.c RecoverGH.c # Extend CFLAGS if HDF5 library was built with LFS support ifneq ($(strip $(HDF5_LFS_FLAGS)),) CFLAGS += $(HDF5_LFS_FLAGS) endif
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
Write.c
/*@@ @file Write.c @date Fri May 21 1999 @author Thomas Radke, Gerd Lanfermann @desc File handling routines for IOHDF5. @enddesc @version $Id$ @@*/ #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Parameters.h" #include "StoreNamedData.h" #inclu...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
Output.c
/*@@ @file Output.c @date Tue Jan 9 1999 @author Gabrielle Allen @desc Functions to deal with output of variables in HDF5 file format @enddesc @version $Id$ @@*/ #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Parameters.h" #include "util_Stri...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
Startup.c
/*@@ @file Startup.c @date Fri May 21 1999 @author Thomas Radke @desc Startup and termination routines for IOHDF5. @enddesc @version $Id$ @@*/ #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Parameters.h" #include "CactusBase/IOUtil/src/ioGH.h...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
util/hdf5_recombiner.c
/*@@ @file hdf5_recombiner.c @date Sat 24 Feb 2001 @author Thomas Radke @desc This utility program recombines chunked Cactus output file(s) in HDF5 file format into a single unchunked HDF5 file. @enddesc @version $Id$ @@*/ #include "cctk.h" /* HAVE_U...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
util/hdf5_convert_from_ieeeio.c
/*@@ @file hdf5_convert_from_ieeeio.c @date Fri 14 Dec 2001 @author Thomas Radke @desc Utility program to convert IOFlexIO datafiles into IOHDF5 datafiles. @enddesc @version $Id$ @@*/ #define MAXDIM 3 #define MAXNAMESIZE 100 #include <stdio.h> #i...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
util/hdf5_convert_from_sdf.c
/*@@ @file hdf5_convert_from_sdf.c @date Tue 24 August 2004 @author Thomas Radke @desc Utility program to convert SDF datafiles into IOHDF5 datafiles. @enddesc @version $Id$ @@*/ #define MAXDIM 3 #define MAXNAMESIZE 100 #include <stdio.h> #includ...
CactusPUGHIO/IOHDF5
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5 # $Header$ REQUIRES IOHDF5Util HDF5 IOUtil PUGH OPTIONAL FlexIO { } OPTIONAL SDF { } OPTIONAL MPI { }
# Interface definition for thorn IOHDF5 # $Header$ Implements: IOHDF5 #Inherits: IO CCTK_INT FUNCTION IO_TruncateOutputFiles \ (CCTK_POINTER_TO_CONST IN GH) REQUIRES FUNCTION IO_TruncateOutputFiles
# Parameter definitions for thorn IOHDF5 # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ######################## # How often to do output #####################...
# Schedule definitions for thorn IOHDF5 # $Header$ ######################################################################## ### register startup/termination routines ######################################################################## schedule IOHDF5_Startup at STARTUP after IOHDF5Util_Startup { LANG:C } "IOHDF5...
util/hdf5_convert_from_carpetiohdf5.c
/*@@ @file hdf5_convert_from_carpetiohdf5.c @date Tue 11 October 2005 @author Thomas Radke @desc Utility program to convert CarpetIOHDF5 datafiles into IOHDF5 datafiles. @enddesc @version $Id$ @@*/ #define MAXDIM 3 #define MAXNAMESIZE 100 #includ...
CactusPUGHIO/IOHDF5Util
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5Util # $Header$ PROVIDES IOHDF5Util { SCRIPT LANG } REQUIRES PUGH IOUtil HDF5 OPTIONAL MPI { }
# Interface definition for thorn IOHDF5Util # $Header$ Implements: IOHDF5Util Inherits: IO CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN ...
# Parameter definitions for thorn IOHDF5Util # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ################### # Compression level ################### INT com...
# Schedule definitions for thorn IOHDF5Util # $Header$ ######################################################################## ### register IOHDF5Util routines ######################################################################## schedule IOHDF5Util_Startup at STARTUP after IOUtil_Startup { LANG:C } "IOHDF5Util ...
DumpUtils.c
/*@@ @file DumpUtils.c @date Fri Oct 6 2000 @author Thomas Radke @desc Utility routines for dumping data into HDF5 files. @enddesc @version $Id$ @@*/ #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Version.h" #include "cctk_Parameters.h" #incl...
CactusPUGHIO/IOHDF5Util
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5Util # $Header$ PROVIDES IOHDF5Util { SCRIPT LANG } REQUIRES PUGH IOUtil HDF5 OPTIONAL MPI { }
# Interface definition for thorn IOHDF5Util # $Header$ Implements: IOHDF5Util Inherits: IO CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN ...
# Parameter definitions for thorn IOHDF5Util # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ################### # Compression level ################### INT com...
# Schedule definitions for thorn IOHDF5Util # $Header$ ######################################################################## ### register IOHDF5Util routines ######################################################################## schedule IOHDF5Util_Startup at STARTUP after IOUtil_Startup { LANG:C } "IOHDF5Util ...
DumpVar.c
/*@@ @file DumpVar.c @date Fri May 21 1999 @author Thomas Radke @desc Routines for writing variables into HDF5 data or checkpoint files. These routines are used by other HDF5 I/O methods. @enddesc @version $Id$ @@*/ #include <stdlib.h> #include <string.h> ...
CactusPUGHIO/IOHDF5Util
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5Util # $Header$ PROVIDES IOHDF5Util { SCRIPT LANG } REQUIRES PUGH IOUtil HDF5 OPTIONAL MPI { }
# Interface definition for thorn IOHDF5Util # $Header$ Implements: IOHDF5Util Inherits: IO CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN ...
# Parameter definitions for thorn IOHDF5Util # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ################### # Compression level ################### INT com...
# Schedule definitions for thorn IOHDF5Util # $Header$ ######################################################################## ### register IOHDF5Util routines ######################################################################## schedule IOHDF5Util_Startup at STARTUP after IOUtil_Startup { LANG:C } "IOHDF5Util ...
make.code.defn
# Main make.code.defn file for thorn IOHDF5Util # $Header$ # Source files in this directory SRCS = Startup.c DumpUtils.c DumpVar.c RecoverVar.c # Extend CFLAGS if HDF5 library was built with LFS support ifneq ($(strip $(HDF5_LFS_FLAGS)),) CFLAGS += $(HDF5_LFS_FLAGS) endif
CactusPUGHIO/IOHDF5Util
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5Util # $Header$ PROVIDES IOHDF5Util { SCRIPT LANG } REQUIRES PUGH IOUtil HDF5 OPTIONAL MPI { }
# Interface definition for thorn IOHDF5Util # $Header$ Implements: IOHDF5Util Inherits: IO CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN ...
# Parameter definitions for thorn IOHDF5Util # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ################### # Compression level ################### INT com...
# Schedule definitions for thorn IOHDF5Util # $Header$ ######################################################################## ### register IOHDF5Util routines ######################################################################## schedule IOHDF5Util_Startup at STARTUP after IOUtil_Startup { LANG:C } "IOHDF5Util ...
ioHDF5UtilGH.h
/*@@ @header ioHDF5UtilGH.h @date Fri Oct 6 2000 @author Thomas Radke @desc The GH extensions structure for thorn IOHDF5Util. @enddesc @version $Header$ @@*/ #ifndef _IOUTILHDF5_IOUTILHDF5GH_H_ #define _IOUTILHDF5_IOUTILHDF5GH_H_ 1 #define H5_USE_16_API 1 #include <hdf5....
CactusPUGHIO/IOHDF5Util
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5Util # $Header$ PROVIDES IOHDF5Util { SCRIPT LANG } REQUIRES PUGH IOUtil HDF5 OPTIONAL MPI { }
# Interface definition for thorn IOHDF5Util # $Header$ Implements: IOHDF5Util Inherits: IO CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN ...
# Parameter definitions for thorn IOHDF5Util # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ################### # Compression level ################### INT com...
# Schedule definitions for thorn IOHDF5Util # $Header$ ######################################################################## ### register IOHDF5Util routines ######################################################################## schedule IOHDF5Util_Startup at STARTUP after IOUtil_Startup { LANG:C } "IOHDF5Util ...
RecoverVar.c
/*@@ @file RecoverVar.c @date Thu Jun 18 16:34:59 1998 @author Tom Goodale @desc Routines to recover variables from a given HDF5 data or checkpoint file. These routines are used by other HDF5 IO methods. @enddesc @version $Id$ @@*/ #includ...
CactusPUGHIO/IOHDF5Util
https://bitbucket.org/cactuscode/cactuspughio.git
# Configuration definitions for thorn IOHDF5Util # $Header$ PROVIDES IOHDF5Util { SCRIPT LANG } REQUIRES PUGH IOUtil HDF5 OPTIONAL MPI { }
# Interface definition for thorn IOHDF5Util # $Header$ Implements: IOHDF5Util Inherits: IO CCTK_INT FUNCTION \ Hyperslab_Get (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN mapping_handle, \ CCTK_INT IN proc, \ CCTK_INT IN vindex, \ CCTK_INT IN ...
# Parameter definitions for thorn IOHDF5Util # $Header$ ############################################################################# ### declare IOHDF5 parameters ############################################################################# private: ################### # Compression level ################### INT com...
# Schedule definitions for thorn IOHDF5Util # $Header$ ######################################################################## ### register IOHDF5Util routines ######################################################################## schedule IOHDF5Util_Startup at STARTUP after IOUtil_Startup { LANG:C } "IOHDF5Util ...
Startup.c
/*@@ @file Startup.c @date Fri Oct 6 2000 @author Thomas Radke @desc Startup and termination routines for IOHDF5Util. @enddesc @version $Id$ @@*/ #include <stdlib.h> #include "cctk.h" #include "cctk_Parameters.h" #include "ioHDF5UtilGH.h" /* the rcs ID and its dummy ...
CactusTest/TestArrays
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Arrays # $Header$ implements: Arrays REAL foo1d TYPE=ARRAY DIM=1 SIZE=xsize1d GHOSTSIZE=xghost1d { gf1d } REAL foo2d TYPE=ARRAY DIM=2 SIZE=xsize2d,ysize2d GHOSTSIZE=xghost2d,yghost2d { gf2d } REAL foo3d TYPE=ARRAY DIM=3 SIZE=xsize3d,ysize3d,zsize3d GHOSTSIZE=xghost3d,yghost3d,zg...
# Parameter definitions for thorn Arrays # $Header$ private: # 4D Arrays INT xghost4d "Ghostzone size in x direction for 4d arrays" { 0:* :: "" } 1 INT yghost4d "Ghostzone size in y direction for 4d arrays" { 0:* :: "" } 1 INT zghost4d "Ghostzone size in z direction for 4d arrays" { 0:* :: "" } 1 INT tghost...
# Schedule definitions for thorn Arrays # $Header$ storage: foo1d,foo2d,foo3d,foo4d storage: bar_a_0d storage: bar_a_1d bar_b_1d bar_c_1d bar_d_1d bar_e_1d bar_f_1d storage: bar_a_2d bar_b_2d bar_c_2d bar_d_2d bar_e_2d bar_f_2d storage: bar_g_2d bar_h_2d bar_i_2d bar_j_2d bar_k_2d bar_l_2d storage: bar_a_3d bar_b_3d b...
make.code.defn
# Main make.code.defn file for thorn Arrays # $Header$ # Source files in this directory SRCS = Array.F # Subdirectories containing source files SUBDIRS =
CactusTest/TestArrays
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Arrays # $Header$ implements: Arrays REAL foo1d TYPE=ARRAY DIM=1 SIZE=xsize1d GHOSTSIZE=xghost1d { gf1d } REAL foo2d TYPE=ARRAY DIM=2 SIZE=xsize2d,ysize2d GHOSTSIZE=xghost2d,yghost2d { gf2d } REAL foo3d TYPE=ARRAY DIM=3 SIZE=xsize3d,ysize3d,zsize3d GHOSTSIZE=xghost3d,yghost3d,zg...
# Parameter definitions for thorn Arrays # $Header$ private: # 4D Arrays INT xghost4d "Ghostzone size in x direction for 4d arrays" { 0:* :: "" } 1 INT yghost4d "Ghostzone size in y direction for 4d arrays" { 0:* :: "" } 1 INT zghost4d "Ghostzone size in z direction for 4d arrays" { 0:* :: "" } 1 INT tghost...
# Schedule definitions for thorn Arrays # $Header$ storage: foo1d,foo2d,foo3d,foo4d storage: bar_a_0d storage: bar_a_1d bar_b_1d bar_c_1d bar_d_1d bar_e_1d bar_f_1d storage: bar_a_2d bar_b_2d bar_c_2d bar_d_2d bar_e_2d bar_f_2d storage: bar_g_2d bar_h_2d bar_i_2d bar_j_2d bar_k_2d bar_l_2d storage: bar_a_3d bar_b_3d b...
Array.F
/*@@ @file Array.F @date @author Gabrielle Allen @desc Set up and use arrays @enddesc @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine SetUpFortranArrays(CCTK_ARGUMENTS) implicit none ...
CactusTest/TestComplex
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestComplex # $Header$ implements: testcomplex complex cvars3d dim=3 type=gf timelevels=2 { comp3d } "3D complex grid functions" #complex cvars2d dim=2 type=gf #{ # comp2d #} "2D complex grid functions" #complex cvars1d dim=1 type=gf #{ # comp1d #} "1D complex grid functions" c...
# Parameter definitions for thorn TestComplex # $Header$ REAL power_value "power of the complex number to take" STEERABLE = ALWAYS { 0.0: :: "Some positive value" } 0.5 REAL real_value "power of the complex number to take" STEERABLE = ALWAYS { *:* :: "real part" } 3 REAL imaginary_value "power of the complex numb...
# Schedule definitions for thorn TestComplex # $Header$ STORAGE: cvars3d[2] STORAGE: carrays3d carrays2d carrays1d cscalars STORAGE: cmplx_output schedule InitComplex3D at INITIAL { LANG: Fortran } "Initialise 3D complex grid functions" schedule EvolveComplex3D at EVOL { LANG: Fortran SYNC: cvars3d } "Evolve 3...
Complex.c
#include <math.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" static const char *rcsid = "$Id$"; CCTK_FILEVERSION(CactusTest_TestComplex_Complex_c); void TestComplexPower(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; CCTK_COMPLEX num, tmp; num = CCTK...
CactusTest/TestComplex
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestComplex # $Header$ implements: testcomplex complex cvars3d dim=3 type=gf timelevels=2 { comp3d } "3D complex grid functions" #complex cvars2d dim=2 type=gf #{ # comp2d #} "2D complex grid functions" #complex cvars1d dim=1 type=gf #{ # comp1d #} "1D complex grid functions" c...
# Parameter definitions for thorn TestComplex # $Header$ REAL power_value "power of the complex number to take" STEERABLE = ALWAYS { 0.0: :: "Some positive value" } 0.5 REAL real_value "power of the complex number to take" STEERABLE = ALWAYS { *:* :: "real part" } 3 REAL imaginary_value "power of the complex numb...
# Schedule definitions for thorn TestComplex # $Header$ STORAGE: cvars3d[2] STORAGE: carrays3d carrays2d carrays1d cscalars STORAGE: cmplx_output schedule InitComplex3D at INITIAL { LANG: Fortran } "Initialise 3D complex grid functions" schedule EvolveComplex3D at EVOL { LANG: Fortran SYNC: cvars3d } "Evolve 3...
make.code.defn
# Main make.code.defn file for thorn TestComplex # $Header$ # Source files in this directory SRCS = Complex3D.F77 Complex.c # Subdirectories containing source files SUBDIRS =
CactusTest/TestComplex
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestComplex # $Header$ implements: testcomplex complex cvars3d dim=3 type=gf timelevels=2 { comp3d } "3D complex grid functions" #complex cvars2d dim=2 type=gf #{ # comp2d #} "2D complex grid functions" #complex cvars1d dim=1 type=gf #{ # comp1d #} "1D complex grid functions" c...
# Parameter definitions for thorn TestComplex # $Header$ REAL power_value "power of the complex number to take" STEERABLE = ALWAYS { 0.0: :: "Some positive value" } 0.5 REAL real_value "power of the complex number to take" STEERABLE = ALWAYS { *:* :: "real part" } 3 REAL imaginary_value "power of the complex numb...
# Schedule definitions for thorn TestComplex # $Header$ STORAGE: cvars3d[2] STORAGE: carrays3d carrays2d carrays1d cscalars STORAGE: cmplx_output schedule InitComplex3D at INITIAL { LANG: Fortran } "Initialise 3D complex grid functions" schedule EvolveComplex3D at EVOL { LANG: Fortran SYNC: cvars3d } "Evolve 3...
Complex3D.F77
c $Header$ #include "cctk.h" #include "cctk_Arguments.h" subroutine InitComplex3D(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_ARGUMENTS integer grouplbnd(3), grouplsh(3) integer i0,j0,k0 integer nx,ny,nz integer i,j,k integer ierr i0 = cctk_lbnd(1) j0...
CactusTest/TestCoordinates
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Coordinates # $Header$ implements: testgrid private: cctk_real cartesian dim=3 type=GF { x,y,z } "Cartesian coordinates" cctk_real spherical dim=3 type=GF { r } "Spherical polar coordinates"
# Parameter definitions for thorn Coordinates # $Header$ restricted: KEYWORD domain "Domain type" { "octant" :: "Use an octant about the origin" "quadrant" :: "Use a quadrant in x-y plane" "bitant" :: "Use a bitant about the x-y plane" "full" :: "Use the full domain" } "full" KEYWORD bitant_plane "Pl...
# Schedule definitions for thorn Coordinates # $Header$ STORAGE: cartesian, spherical schedule Coordinates_Startup at STARTUP { LANG: Fortran } "Register coordinates" schedule Coordinates_Setup at BASEGRID { LANG: Fortran } "Set up coordinates" schedule Coordinates_Query at EVOL { LANG: Fortran } "Query coord...
Coords.F77
#include "cctk.h" #include "cctk_Arguments.h" integer function Coordinates_Startup() implicit none integer ierr c Register coordinate systems print * print *,"CORRECTLY REGISTERING COORDINATE SYSTEM" print *,"---------------------------------------" print * prin...
CactusTest/TestCoordinates
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Coordinates # $Header$ implements: testgrid private: cctk_real cartesian dim=3 type=GF { x,y,z } "Cartesian coordinates" cctk_real spherical dim=3 type=GF { r } "Spherical polar coordinates"
# Parameter definitions for thorn Coordinates # $Header$ restricted: KEYWORD domain "Domain type" { "octant" :: "Use an octant about the origin" "quadrant" :: "Use a quadrant in x-y plane" "bitant" :: "Use a bitant about the x-y plane" "full" :: "Use the full domain" } "full" KEYWORD bitant_plane "Pl...
# Schedule definitions for thorn Coordinates # $Header$ STORAGE: cartesian, spherical schedule Coordinates_Startup at STARTUP { LANG: Fortran } "Register coordinates" schedule Coordinates_Setup at BASEGRID { LANG: Fortran } "Set up coordinates" schedule Coordinates_Query at EVOL { LANG: Fortran } "Query coord...
make.code.defn
# Main make.code.defn file for thorn Coordinates # $Header$ # Source files in this directory SRCS = Coords.F77 # Subdirectories containing source files SUBDIRS =
CactusTest/TestFortranCrayPointers
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definitions for thorn TestFortranCrayPointers
# Interface definition for thorn TestFortranCrayPointers IMPLEMENTS: TestFortranCrayPointers
# Parameter definitions for thorn TestFortranCrayPointers
# Schedule definitions for thorn TestFortranCrayPointers SCHEDULE TestFortranCrayPointers_main AT initial { LANG: C } "Test Fortran Cray pointers"
main.c
#include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <cctk.h> #include <cctk_Arguments.h> CCTK_FCALL void CCTK_FNAME(TestFortranCrayPointers_sub)(uintptr_t const* restrict pointers, int const* restrict n); void TestFortranCrayPointers_main(CC...
CactusTest/TestFortranCrayPointers
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definitions for thorn TestFortranCrayPointers
# Interface definition for thorn TestFortranCrayPointers IMPLEMENTS: TestFortranCrayPointers
# Parameter definitions for thorn TestFortranCrayPointers
# Schedule definitions for thorn TestFortranCrayPointers SCHEDULE TestFortranCrayPointers_main AT initial { LANG: C } "Test Fortran Cray pointers"
make.code.defn
# Main make.code.defn file for thorn TestFortranCrayPointers # Source files in this directory SRCS = main.c sub.F90 # Subdirectories containing source files SUBDIRS =
CactusTest/TestFortranCrayPointers
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definitions for thorn TestFortranCrayPointers
# Interface definition for thorn TestFortranCrayPointers IMPLEMENTS: TestFortranCrayPointers
# Parameter definitions for thorn TestFortranCrayPointers
# Schedule definitions for thorn TestFortranCrayPointers SCHEDULE TestFortranCrayPointers_main AT initial { LANG: C } "Test Fortran Cray pointers"
sub.F90
#include "cctk.h" subroutine TestFortranCrayPointers_sub(pointers, n) implicit none ! Find the integer type used for pointers ! (This should be integer*SIZEOF_CHAR_P) integer dummy pointer (pdummy, dummy) integer, parameter :: pk = kind(pdummy) CCTK_POINTER p ! Ensure that the pointer kinds (p...
CactusTest/TestFortranDependencies1
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definition for thorn TestFortranDependencies1 # $Header$ REQUIRES TestFortranDependencies
# Interface definition for thorn TestFortranDependencies1 # $Header$ implements: TestFortranDependencies1
# Parameter definitions for thorn TestFortranDependencies1 # $Header$
# Schedule definitions for thorn TestFortranDependencies1 # $Header$
tfd_use_module_far.F90
/*@@ @file tfd_use_module_far.F90 @author Erik Schnetter @date 2004/04/01 @desc Some code using the sample Fortran module from a different thorn @version $Header$ @enddesc @@*/ subroutine tfd_use_module_far use tfd_module implicit none some_variable = 2 end subroutine tfd...
CactusTest/TestFortranDependencies1
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definition for thorn TestFortranDependencies1 # $Header$ REQUIRES TestFortranDependencies
# Interface definition for thorn TestFortranDependencies1 # $Header$ implements: TestFortranDependencies1
# Parameter definitions for thorn TestFortranDependencies1 # $Header$
# Schedule definitions for thorn TestFortranDependencies1 # $Header$
make.code.defn
# Main make.code.defn file for thorn TestFortranDependencies1 # $Header$ # Source files in this directory SRCS = tfd_use_module_far.F90 # Subdirectories containing source files SUBDIRS =
CactusTest/TestFortranDependencies2
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definition for thorn TestFortranDependencies2 # $Header$ PROVIDES TestFortranDependencies { SCRIPT LANG }
# Interface definition for thorn TestFortranDependencies2 # $Header$ implements: TestFortranDependencies2
# Parameter definitions for thorn TestFortranDependencies2 # $Header$
# Schedule definitions for thorn TestFortranDependencies2 # $Header$
tfd_use_module.F90
/*@@ @file tfd_use_module.F90 @author Erik Schnetter @date 2004/04/01 @desc Some code using the sample Fortran module @version $Header$ @enddesc @@*/ subroutine tfd_use_module use tfd_module implicit none some_variable = 1 end subroutine tfd_use_module
CactusTest/TestFortranDependencies2
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definition for thorn TestFortranDependencies2 # $Header$ PROVIDES TestFortranDependencies { SCRIPT LANG }
# Interface definition for thorn TestFortranDependencies2 # $Header$ implements: TestFortranDependencies2
# Parameter definitions for thorn TestFortranDependencies2 # $Header$
# Schedule definitions for thorn TestFortranDependencies2 # $Header$
tfd_module.F90
/*@@ @file tfd_module.F90 @author Erik Schnetter @date 2004/04/01 @desc A sample Fortran module @version $Header$ @enddesc @@*/ module tfd_module implicit none integer some_variable end module tfd_module
CactusTest/TestFortranDependencies2
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definition for thorn TestFortranDependencies2 # $Header$ PROVIDES TestFortranDependencies { SCRIPT LANG }
# Interface definition for thorn TestFortranDependencies2 # $Header$ implements: TestFortranDependencies2
# Parameter definitions for thorn TestFortranDependencies2 # $Header$
# Schedule definitions for thorn TestFortranDependencies2 # $Header$
make.code.defn
# Main make.code.defn file for thorn TestFortranDependencies2 # $Header$ # Source files in this directory SRCS = tfd_use_module.F90 tfd_module.F90 # Subdirectories containing source files SUBDIRS =
CactusTest/TestFpointerNULL
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestFpointerNULL # $Header$ implements: TestFpointerNULL private: REAL array_group TYPE=ARRAY DIM=2 SIZE=5,10 { array } "CCTK_REAL test array" INT scalar_group TYPE=SCALAR { scalar } "CCTK_INT test scalar"
# Parameter definitions for thorn TestFpointerNULL # $Header$
# Schedule definitions for thorn TestFpointerNULL # $Header$ STORAGE: scalar_group array_group SCHEDULE TestFpointerNULL_Caller AT INITIAL { LANG: C } "Test passing a NULL pointer from a C function into Fortran routine"
make.code.defn
# Main make.code.defn file for thorn PassNULLtoFortran # $Header$ # Source files in this directory SRCS = Caller.c Callee.F77
CactusTest/TestFpointerNULL
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestFpointerNULL # $Header$ implements: TestFpointerNULL private: REAL array_group TYPE=ARRAY DIM=2 SIZE=5,10 { array } "CCTK_REAL test array" INT scalar_group TYPE=SCALAR { scalar } "CCTK_INT test scalar"
# Parameter definitions for thorn TestFpointerNULL # $Header$
# Schedule definitions for thorn TestFpointerNULL # $Header$ STORAGE: scalar_group array_group SCHEDULE TestFpointerNULL_Caller AT INITIAL { LANG: C } "Test passing a NULL pointer from a C function into Fortran routine"
Caller.c
/*@@ @file Caller.c @date Thu 13 June 2002 @author Thomas Radke @desc C interface of the TestFpointerNULL thorn. @enddesc @version $Id$ @@*/ #include <stdio.h> #include <string.h> #include "cctk.h" #include "cctk_FortranString.h" /* the rcsid and the macro to use it */...
CactusTest/TestFpointerNULL
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestFpointerNULL # $Header$ implements: TestFpointerNULL private: REAL array_group TYPE=ARRAY DIM=2 SIZE=5,10 { array } "CCTK_REAL test array" INT scalar_group TYPE=SCALAR { scalar } "CCTK_INT test scalar"
# Parameter definitions for thorn TestFpointerNULL # $Header$
# Schedule definitions for thorn TestFpointerNULL # $Header$ STORAGE: scalar_group array_group SCHEDULE TestFpointerNULL_Caller AT INITIAL { LANG: C } "Test passing a NULL pointer from a C function into Fortran routine"
Callee.F77
c @@ c @file Callee.c c @date Thu 13 June 2002 c @author Thomas Radke c @desc c Fortran interface of the TestFpointerNULL thorn. c @enddesc c @version $Id$ c@@ #include "cctk.h" c @@ c @routine TestFpointerNULL_Callee c @author Thomas Radke c @date Thu 13 June 2002 c...
CactusTest/TestFreeF90
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestFreeF90 # $Header$ IMPLEMENTS: TestFreeF90
# Parameter definitions for thorn TestFreeF90 # $Header$
# Schedule definitions for thorn TestFreeF90 # $Header$
TestFreeF90.F90
! $Header$ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine TestFreeF90 (CCTK_ARGUMENTS) implicit none DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS integer a !!$ ! Ensure that trailing commas are removed !!$ call du...
CactusTest/TestFreeF90
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestFreeF90 # $Header$ IMPLEMENTS: TestFreeF90
# Parameter definitions for thorn TestFreeF90 # $Header$
# Schedule definitions for thorn TestFreeF90 # $Header$
make.code.defn
# Main make.code.defn file for thorn TestFreeF90 # $Header$ # Source files in this directory SRCS = TestFreeF90.F90 # Subdirectories containing source files SUBDIRS =
CactusTest/TestGlobalReduce
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestGlobalReduce # $Header$ implements:testglobalreduce inherits: grid public: cctk_real real_3d dim=3 type=ARRAY size=array_nx,array_ny,array_nz { grid_real } "grid array to be reduced of type real" cctk_int int_3d dim=3 type=ARRAY size=array_nx,array_ny,array_nz { grid_int } "g...
# Parameter definitions for thorn TestGlobalReduce # $Header$ INT array_nx "Size of arrays in x direction" { 0:* :: "" } 5 INT array_ny "Size of arrays in y direction" { 0:* :: "" } 4 INT array_nz "Size of arrays in z direction" { 0:* :: "" } 10 INT dest_proc "processor to which reduction is to be made" { *:...
# Schedule definitions for thorn TestGlobapdReduce # $Header$ STORAGE: real_3d int_3d real_vals int_vals weighted_real_vals weighted_int_vals real_gf[1] gf_vals[1] scalar_reduction weight_group schedule TestGlobalReduce_Initial at CCTK_INITIAL { LANG:C } "Initialize the input arrays to values" schedule TestGlobalR...
Initial.c
/*@@ @file Initial.c @date Tues Sep 7 16:00:29 2004 @author Yaakoub El Khamra @desc Setup the grid arrays we want to test reduction with @enddesc @version $Id$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include <math.h> static co...
CactusTest/TestGlobalReduce
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestGlobalReduce # $Header$ implements:testglobalreduce inherits: grid public: cctk_real real_3d dim=3 type=ARRAY size=array_nx,array_ny,array_nz { grid_real } "grid array to be reduced of type real" cctk_int int_3d dim=3 type=ARRAY size=array_nx,array_ny,array_nz { grid_int } "g...
# Parameter definitions for thorn TestGlobalReduce # $Header$ INT array_nx "Size of arrays in x direction" { 0:* :: "" } 5 INT array_ny "Size of arrays in y direction" { 0:* :: "" } 4 INT array_nz "Size of arrays in z direction" { 0:* :: "" } 10 INT dest_proc "processor to which reduction is to be made" { *:...
# Schedule definitions for thorn TestGlobapdReduce # $Header$ STORAGE: real_3d int_3d real_vals int_vals weighted_real_vals weighted_int_vals real_gf[1] gf_vals[1] scalar_reduction weight_group schedule TestGlobalReduce_Initial at CCTK_INITIAL { LANG:C } "Initialize the input arrays to values" schedule TestGlobalR...
make.code.defn
# Main make.code.defn file for thorn TestGlobalReduce # $Header$ # Source files in this directory SRCS = Initial.c TestGlobalReduce.c # Subdirectories containing source files SUBDIRS =
CactusTest/TestGlobalReduce
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestGlobalReduce # $Header$ implements:testglobalreduce inherits: grid public: cctk_real real_3d dim=3 type=ARRAY size=array_nx,array_ny,array_nz { grid_real } "grid array to be reduced of type real" cctk_int int_3d dim=3 type=ARRAY size=array_nx,array_ny,array_nz { grid_int } "g...
# Parameter definitions for thorn TestGlobalReduce # $Header$ INT array_nx "Size of arrays in x direction" { 0:* :: "" } 5 INT array_ny "Size of arrays in y direction" { 0:* :: "" } 4 INT array_nz "Size of arrays in z direction" { 0:* :: "" } 10 INT dest_proc "processor to which reduction is to be made" { *:...
# Schedule definitions for thorn TestGlobapdReduce # $Header$ STORAGE: real_3d int_3d real_vals int_vals weighted_real_vals weighted_int_vals real_gf[1] gf_vals[1] scalar_reduction weight_group schedule TestGlobalReduce_Initial at CCTK_INITIAL { LANG:C } "Initialize the input arrays to values" schedule TestGlobalR...
TestGlobalReduce.c
/*@@ @file TestGlobalReduce.c @date Tues Sep 7 16:00:29 2004 @author Yaakoub El Khamra @desc Test the global reduction implementation @enddesc @version $Header$ @@*/ #include <stdio.h> #include "cctk.h" #include "util_Table.h" #include "cctk_Arguments.h" #include "cc...
CactusTest/TestInclude1
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include1 # $Header$ implements: include1 INCLUDES HEADER: IncludeHeader1In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader1In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource1In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource1In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include1 # $Header$
# Schedule definitions for thorn Include1 # $Header$ schedule PrintInclude1 at INITIAL { LANG: C } "Print contents of include files"
IncludeHeader1In2.h
#define ih1in2
CactusTest/TestInclude1
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include1 # $Header$ implements: include1 INCLUDES HEADER: IncludeHeader1In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader1In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource1In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource1In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include1 # $Header$
# Schedule definitions for thorn Include1 # $Header$ schedule PrintInclude1 at INITIAL { LANG: C } "Print contents of include files"
IncludeHeader1In1.h
#define ih1in1
CactusTest/TestInclude1
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include1 # $Header$ implements: include1 INCLUDES HEADER: IncludeHeader1In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader1In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource1In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource1In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include1 # $Header$
# Schedule definitions for thorn Include1 # $Header$ schedule PrintInclude1 at INITIAL { LANG: C } "Print contents of include files"
PrintInclude.c
#include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusTest_TestInclude1_PrintInclude_c) #include "IncludeHeader1.h" void PrintInclude1(CCTK_ARGUMENTS); void PrintInclude1(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS printf("\n\nTesting Ca...
CactusTest/TestInclude1
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include1 # $Header$ implements: include1 INCLUDES HEADER: IncludeHeader1In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader1In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource1In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource1In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include1 # $Header$
# Schedule definitions for thorn Include1 # $Header$ schedule PrintInclude1 at INITIAL { LANG: C } "Print contents of include files"
make.code.defn
# Main make.code.defn file for thorn Include1 # $Header$ # Source files in this directory SRCS = PrintInclude.c # Subdirectories containing source files SUBDIRS =
CactusTest/TestInclude1
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include1 # $Header$ implements: include1 INCLUDES HEADER: IncludeHeader1In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader1In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource1In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource1In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include1 # $Header$
# Schedule definitions for thorn Include1 # $Header$ schedule PrintInclude1 at INITIAL { LANG: C } "Print contents of include files"
IncludeSource1In2.h
print *,"INCLUDED in IncludeSource2 FROM: thorn Include1"
CactusTest/TestInclude1
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include1 # $Header$ implements: include1 INCLUDES HEADER: IncludeHeader1In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader1In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource1In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource1In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include1 # $Header$
# Schedule definitions for thorn Include1 # $Header$ schedule PrintInclude1 at INITIAL { LANG: C } "Print contents of include files"
IncludeSource1In1.h
printf("\nINCLUDED in IncludeSource1 FROM: thorn Include1\n");
CactusTest/TestInclude2
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include2 # $Header$ implements: include2 INCLUDES HEADER: IncludeHeader2In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader2In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource2In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource2In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include2 # $Header$
# Schedule definitions for thorn Include2 # $Header$ schedule PrintInclude2 at INITIAL { LANG: Fortran } "Print contents of include files"
IncludeSource2In1.h
printf("\nINCLUDED in IncludeSource1 FROM: thorn Include2\n");
CactusTest/TestInclude2
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include2 # $Header$ implements: include2 INCLUDES HEADER: IncludeHeader2In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader2In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource2In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource2In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include2 # $Header$
# Schedule definitions for thorn Include2 # $Header$ schedule PrintInclude2 at INITIAL { LANG: Fortran } "Print contents of include files"
PrintInclude.F77
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" #include "IncludeHeader2.h" subroutine PrintInclude2(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_FUNCTIONS print * print * print *,"Testing Cactus Build Include Files from Inte...
CactusTest/TestInclude2
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include2 # $Header$ implements: include2 INCLUDES HEADER: IncludeHeader2In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader2In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource2In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource2In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include2 # $Header$
# Schedule definitions for thorn Include2 # $Header$ schedule PrintInclude2 at INITIAL { LANG: Fortran } "Print contents of include files"
IncludeSource2In2.h
print *,"INCLUDED in IncludeSource2 FROM: thorn Include2"
CactusTest/TestInclude2
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include2 # $Header$ implements: include2 INCLUDES HEADER: IncludeHeader2In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader2In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource2In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource2In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include2 # $Header$
# Schedule definitions for thorn Include2 # $Header$ schedule PrintInclude2 at INITIAL { LANG: Fortran } "Print contents of include files"
IncludeHeader2In1.h
#define ih2in1
CactusTest/TestInclude2
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include2 # $Header$ implements: include2 INCLUDES HEADER: IncludeHeader2In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader2In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource2In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource2In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include2 # $Header$
# Schedule definitions for thorn Include2 # $Header$ schedule PrintInclude2 at INITIAL { LANG: Fortran } "Print contents of include files"
make.code.defn
# Main make.code.defn file for thorn Include2 # $Header$ # Source files in this directory SRCS = PrintInclude.F77 # Subdirectories containing source files SUBDIRS =
CactusTest/TestInclude2
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn Include2 # $Header$ implements: include2 INCLUDES HEADER: IncludeHeader2In1.h in IncludeHeader1.h INCLUDES HEADER: IncludeHeader2In2.h in IncludeHeader2.h INCLUDES SOURCE: IncludeSource2In1.h in IncludeSource1.h INCLUDES SOURCE: IncludeSource2In2.h in IncludeSource2.h USES INCLUDE S...
# Parameter definitions for thorn Include2 # $Header$
# Schedule definitions for thorn Include2 # $Header$ schedule PrintInclude2 at INITIAL { LANG: Fortran } "Print contents of include files"
IncludeHeader2In2.h
#define ih2in2
CactusTest/TestLoop
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestLoop IMPLEMENTS: TestLoop INHERITS: grid # Convenient way to determine boundary sizes CCTK_INT FUNCTION GetBoundarySizesAndTypes \ (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN size, \ CCTK_INT OUT ARRAY bndsize, \ CCTK_INT OUT ARRAY is_ghostbnd, \ CCTK_INT OUT ...
# Parameter definitions for thorn TestLoop
# Schedule definitions for thorn TestLoop STORAGE: csums fsums pointtypes SCHEDULE TestLoopPointwise AT initial { LANG: C } "Test loop iterators pointwise" SCHEDULE TestLoopC AT initial { LANG: C } "Test loop iterators" SCHEDULE TestLoopFortran AT initial { LANG: Fortran } "Test loop iterators"
TestLoopC.c
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> void TestLoopC(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; switch (cctk_dim) { case 1: { /* 1D */ *csum_all = 0.0; #pragma omp parallel CCTK_LOOP1_ALL(loop1_all, cctkGH, i) { int c...
CactusTest/TestLoop
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestLoop IMPLEMENTS: TestLoop INHERITS: grid # Convenient way to determine boundary sizes CCTK_INT FUNCTION GetBoundarySizesAndTypes \ (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN size, \ CCTK_INT OUT ARRAY bndsize, \ CCTK_INT OUT ARRAY is_ghostbnd, \ CCTK_INT OUT ...
# Parameter definitions for thorn TestLoop
# Schedule definitions for thorn TestLoop STORAGE: csums fsums pointtypes SCHEDULE TestLoopPointwise AT initial { LANG: C } "Test loop iterators pointwise" SCHEDULE TestLoopC AT initial { LANG: C } "Test loop iterators" SCHEDULE TestLoopFortran AT initial { LANG: Fortran } "Test loop iterators"
TestLoopFortran.F90
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine TestLoopFortran_all(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS CCTK_LOOP3_ALL_DECLARE(all3) integer :: i,j,k call CCTK_INFO(...
CactusTest/TestLoop
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestLoop IMPLEMENTS: TestLoop INHERITS: grid # Convenient way to determine boundary sizes CCTK_INT FUNCTION GetBoundarySizesAndTypes \ (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN size, \ CCTK_INT OUT ARRAY bndsize, \ CCTK_INT OUT ARRAY is_ghostbnd, \ CCTK_INT OUT ...
# Parameter definitions for thorn TestLoop
# Schedule definitions for thorn TestLoop STORAGE: csums fsums pointtypes SCHEDULE TestLoopPointwise AT initial { LANG: C } "Test loop iterators pointwise" SCHEDULE TestLoopC AT initial { LANG: C } "Test loop iterators" SCHEDULE TestLoopFortran AT initial { LANG: Fortran } "Test loop iterators"
make.code.defn
# Main make.code.defn file for thorn TestLoop # Source files in this directory SRCS = TestLoopPointwise.c TestLoopC.c TestLoopFortran.F90 # Subdirectories containing source files SUBDIRS =
CactusTest/TestLoop
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestLoop IMPLEMENTS: TestLoop INHERITS: grid # Convenient way to determine boundary sizes CCTK_INT FUNCTION GetBoundarySizesAndTypes \ (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_INT IN size, \ CCTK_INT OUT ARRAY bndsize, \ CCTK_INT OUT ARRAY is_ghostbnd, \ CCTK_INT OUT ...
# Parameter definitions for thorn TestLoop
# Schedule definitions for thorn TestLoop STORAGE: csums fsums pointtypes SCHEDULE TestLoopPointwise AT initial { LANG: C } "Test loop iterators pointwise" SCHEDULE TestLoopC AT initial { LANG: C } "Test loop iterators" SCHEDULE TestLoopFortran AT initial { LANG: Fortran } "Test loop iterators"
TestLoopPointwise.c
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <stdio.h> static void TestLoopPointwise_All(CCTK_ARGUMENTS); static void TestLoopPointwise_Int(CCTK_ARGUMENTS); static void TestLoopPointwise_Bnd(CCTK_ARGUMENTS); static void TestLoopPointwise_IntBnd(CCTK_ARGUMENTS); void TestLoo...
CactusTest/TestMath
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestMath IMPLEMENTS: TestMath
# Parameter definitions for thorn TestMath
# Schedule definitions for thorn TestMath SCHEDULE TestMath_C AT initial { LANG: C } "Test C math functions" SCHEDULE TestMath_CC AT initial { LANG: C } "Test C++ math functions"
math_c.c
#include <math.h> #include <cctk.h> #include <cctk_Arguments.h> void TestMath_C(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; volatile int i CCTK_ATTRIBUTE_UNUSED = 1; volatile float f CCTK_ATTRIBUTE_UNUSED = 2; volatile double d CCTK_ATTRIBUTE_UNUSED = 3; #ifdef SIZEOF_LONG_DOUBLE vo...
CactusTest/TestMath
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestMath IMPLEMENTS: TestMath
# Parameter definitions for thorn TestMath
# Schedule definitions for thorn TestMath SCHEDULE TestMath_C AT initial { LANG: C } "Test C math functions" SCHEDULE TestMath_CC AT initial { LANG: C } "Test C++ math functions"
make.code.defn
# Main make.code.defn file for thorn TestMath # Source files in this directory SRCS = math_c.c math_cc.cc # Subdirectories containing source files SUBDIRS =
CactusTest/TestMath
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestMath IMPLEMENTS: TestMath
# Parameter definitions for thorn TestMath
# Schedule definitions for thorn TestMath SCHEDULE TestMath_C AT initial { LANG: C } "Test C math functions" SCHEDULE TestMath_CC AT initial { LANG: C } "Test C++ math functions"
math_cc.cc
#include <algorithm> #include <cmath> #include <cstdlib> #include <cctk.h> #include <cctk_Arguments.h> // Test long double only if it is actually used, i.e. if e.g. // CCTK_REAL16 is long double #if defined SIZEOF_LONG_DOUBLE && HAVE_CCTK_REAL16 && SIZEOF_LONG_DOUBLE==16 # define TEST_LONG_DOUBLE #endif extern ...
CactusTest/TestMoL
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definitions for thorn TestMoL
implements: TestMoL inherits: MethodOfLines # not really required but useful to make sure MoL is active ################################################################ ### Aliased registration and type changing functions for the ### ### standard (i.e., real) GFs. ### ####################...
private: KEYWORD RHSexpression "expression to use for the right-hand-side of the ODE" { "1" :: "unit rhs" "t" :: "linear in time rhs" "t**2" :: "quadratic in time rhs" "t**3" :: "cubic in time rhs" "t**4" :: "quartic in time rhs" "t**5" :: "quintic in time rhs" "t**6" :: "sixth order in time rhs" "t**7...
STORAGE: evolved_gf[3] evolvedslow_gf[3] constrained_gf[3] sandr_gf[3] STORAGE: rhs_gf[1] rhsslow_gf[1] STORAGE: diff_gf[1] analytic_gf[1] diffslow_gf[1] analyticslow_gf[1] STORAGE: evolved_ga[3] constrained_ga[3] sandr_ga[3] STORAGE: rhs_ga[1] STORAGE: diff_ga[1] analytic_ga[1] schedule TestMoL_RegisterVars in MoL_Re...
Init.c
#include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include <assert.h> /***************************************************************************** ************** External routines ******************************************** ****************************************************************...
CactusTest/TestMoL
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definitions for thorn TestMoL
implements: TestMoL inherits: MethodOfLines # not really required but useful to make sure MoL is active ################################################################ ### Aliased registration and type changing functions for the ### ### standard (i.e., real) GFs. ### ####################...
private: KEYWORD RHSexpression "expression to use for the right-hand-side of the ODE" { "1" :: "unit rhs" "t" :: "linear in time rhs" "t**2" :: "quadratic in time rhs" "t**3" :: "cubic in time rhs" "t**4" :: "quartic in time rhs" "t**5" :: "quintic in time rhs" "t**6" :: "sixth order in time rhs" "t**7...
STORAGE: evolved_gf[3] evolvedslow_gf[3] constrained_gf[3] sandr_gf[3] STORAGE: rhs_gf[1] rhsslow_gf[1] STORAGE: diff_gf[1] analytic_gf[1] diffslow_gf[1] analyticslow_gf[1] STORAGE: evolved_ga[3] constrained_ga[3] sandr_ga[3] STORAGE: rhs_ga[1] STORAGE: diff_ga[1] analytic_ga[1] schedule TestMoL_RegisterVars in MoL_Re...
Register.c
#include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include <assert.h> /***************************************************************************** ************** External routines ******************************************** ****************************************************************...
CactusTest/TestMoL
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definitions for thorn TestMoL
implements: TestMoL inherits: MethodOfLines # not really required but useful to make sure MoL is active ################################################################ ### Aliased registration and type changing functions for the ### ### standard (i.e., real) GFs. ### ####################...
private: KEYWORD RHSexpression "expression to use for the right-hand-side of the ODE" { "1" :: "unit rhs" "t" :: "linear in time rhs" "t**2" :: "quadratic in time rhs" "t**3" :: "cubic in time rhs" "t**4" :: "quartic in time rhs" "t**5" :: "quintic in time rhs" "t**6" :: "sixth order in time rhs" "t**7...
STORAGE: evolved_gf[3] evolvedslow_gf[3] constrained_gf[3] sandr_gf[3] STORAGE: rhs_gf[1] rhsslow_gf[1] STORAGE: diff_gf[1] analytic_gf[1] diffslow_gf[1] analyticslow_gf[1] STORAGE: evolved_ga[3] constrained_ga[3] sandr_ga[3] STORAGE: rhs_ga[1] STORAGE: diff_ga[1] analytic_ga[1] schedule TestMoL_RegisterVars in MoL_Re...
RHS.c
#include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" #include <assert.h> #include <math.h> /***************************************************************************** ************** Local types ************************************************** **********************************************...
CactusTest/TestMoL
https://bitbucket.org/cactuscode/cactustest.git
# Configuration definitions for thorn TestMoL
implements: TestMoL inherits: MethodOfLines # not really required but useful to make sure MoL is active ################################################################ ### Aliased registration and type changing functions for the ### ### standard (i.e., real) GFs. ### ####################...
private: KEYWORD RHSexpression "expression to use for the right-hand-side of the ODE" { "1" :: "unit rhs" "t" :: "linear in time rhs" "t**2" :: "quadratic in time rhs" "t**3" :: "cubic in time rhs" "t**4" :: "quartic in time rhs" "t**5" :: "quintic in time rhs" "t**6" :: "sixth order in time rhs" "t**7...
STORAGE: evolved_gf[3] evolvedslow_gf[3] constrained_gf[3] sandr_gf[3] STORAGE: rhs_gf[1] rhsslow_gf[1] STORAGE: diff_gf[1] analytic_gf[1] diffslow_gf[1] analyticslow_gf[1] STORAGE: evolved_ga[3] constrained_ga[3] sandr_ga[3] STORAGE: rhs_ga[1] STORAGE: diff_ga[1] analytic_ga[1] schedule TestMoL_RegisterVars in MoL_Re...
make.code.defn
# Source files in this directory SRCS = Register.c RHS.c Init.c # Subdirectories containing source files SUBDIRS =
CactusTest/TestPar
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestPar IMPLEMENTS: TestPar
# Parameter definitions for thorn TestPar STRING string1 "" { ".*" :: "Any string" } "" STRING string2 "" { ".*" :: "Any string" } "" STRING string3 "" { ".*" :: "Any string" } "" STRING string4 "" { ".*" :: "Any string" } "" STRING string5 "" { ".*" :: "Any string" } "" STRING string6 "" { ".*" :: "A...
# Schedule definitions for thorn TestPar SCHEDULE TestPar_PrintStrings AT initial { LANG: C } "Output string parameters" SCHEDULE TestPar_SetValues AT initial { LANG: C } "Set values based on parameters"
SetValues.c
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> #include <cctk_File.h> #include <util_String.h> #include <stdio.h> #include <stdlib.h> void TestPar_SetValues (CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; int i; FILE *fh = NULL; char *buf = NULL; if(C...
CactusTest/TestPar
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestPar IMPLEMENTS: TestPar
# Parameter definitions for thorn TestPar STRING string1 "" { ".*" :: "Any string" } "" STRING string2 "" { ".*" :: "Any string" } "" STRING string3 "" { ".*" :: "Any string" } "" STRING string4 "" { ".*" :: "Any string" } "" STRING string5 "" { ".*" :: "Any string" } "" STRING string6 "" { ".*" :: "A...
# Schedule definitions for thorn TestPar SCHEDULE TestPar_PrintStrings AT initial { LANG: C } "Output string parameters" SCHEDULE TestPar_SetValues AT initial { LANG: C } "Set values based on parameters"
make.code.defn
# Main make.code.defn file for thorn TestPar # Source files in this directory SRCS = PrintStrings.c SetValues.c # Subdirectories containing source files SUBDIRS =
CactusTest/TestPar
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestPar IMPLEMENTS: TestPar
# Parameter definitions for thorn TestPar STRING string1 "" { ".*" :: "Any string" } "" STRING string2 "" { ".*" :: "Any string" } "" STRING string3 "" { ".*" :: "Any string" } "" STRING string4 "" { ".*" :: "Any string" } "" STRING string5 "" { ".*" :: "Any string" } "" STRING string6 "" { ".*" :: "A...
# Schedule definitions for thorn TestPar SCHEDULE TestPar_PrintStrings AT initial { LANG: C } "Output string parameters" SCHEDULE TestPar_SetValues AT initial { LANG: C } "Set values based on parameters"
PrintStrings.c
#include <cctk.h> #include <cctk_Arguments.h> #include <cctk_Parameters.h> void TestPar_PrintStrings (CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; CCTK_VInfo (CCTK_THORNSTRING, "String 1: \"%s\"", string1); CCTK_VInfo (CCTK_THORNSTRING, "String 2: \"%s\"", string2); CCTK_VInfo (CCTK_...
CactusTest/TestReduce
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestReduce # $Header$ implements: testreduce private: cctk_real testreduce_3gfs type = GF dim=3 { phi_gf3 } "Test grid function" cctk_real testreduce_2gfs type = GF dim=2 { phi_gf2 } "Test grid function" cctk_real testreduce_1gfs type = GF dim=1 { phi_gf1 } "Test grid functio...
# Parameter definitions for thorn TestReduce # $Header$
# Schedule definitions for thorn TestReduce # $Header$ STORAGE: testreduce_3gfs STORAGE: testreduce_2gfs STORAGE: testreduce_1gfs STORAGE: testreduce_3igfs STORAGE: testreduce_2igfs STORAGE: testreduce_1igfs STORAGE: testreduce_scalars STORAGE: testreduce_iscalars schedule TestReduce_Initial at CCTK_INITIAL { LANG:...
Reduce_Maximum.c
#include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusTest_TestReduce_Reduce_Maximum_c) void TestReduceC_Maximum(CCTK_ARGUMENTS); void TestReduceC_Maximum(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS int handle; int index; int ierr; CC...
CactusTest/TestReduce
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestReduce # $Header$ implements: testreduce private: cctk_real testreduce_3gfs type = GF dim=3 { phi_gf3 } "Test grid function" cctk_real testreduce_2gfs type = GF dim=2 { phi_gf2 } "Test grid function" cctk_real testreduce_1gfs type = GF dim=1 { phi_gf1 } "Test grid functio...
# Parameter definitions for thorn TestReduce # $Header$
# Schedule definitions for thorn TestReduce # $Header$ STORAGE: testreduce_3gfs STORAGE: testreduce_2gfs STORAGE: testreduce_1gfs STORAGE: testreduce_3igfs STORAGE: testreduce_2igfs STORAGE: testreduce_1igfs STORAGE: testreduce_scalars STORAGE: testreduce_iscalars schedule TestReduce_Initial at CCTK_INITIAL { LANG:...
Reduce_Sum.F77
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" subroutine TestReduceF_Sum(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_FUNCTIONS integer handle integer index integer ierr CCTK_REAL reduction_value CCTK_INT ireducti...
CactusTest/TestReduce
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestReduce # $Header$ implements: testreduce private: cctk_real testreduce_3gfs type = GF dim=3 { phi_gf3 } "Test grid function" cctk_real testreduce_2gfs type = GF dim=2 { phi_gf2 } "Test grid function" cctk_real testreduce_1gfs type = GF dim=1 { phi_gf1 } "Test grid functio...
# Parameter definitions for thorn TestReduce # $Header$
# Schedule definitions for thorn TestReduce # $Header$ STORAGE: testreduce_3gfs STORAGE: testreduce_2gfs STORAGE: testreduce_1gfs STORAGE: testreduce_3igfs STORAGE: testreduce_2igfs STORAGE: testreduce_1igfs STORAGE: testreduce_scalars STORAGE: testreduce_iscalars schedule TestReduce_Initial at CCTK_INITIAL { LANG:...
Reduce_Maximum.F77
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" subroutine TestReduceF_Maximum(CCTK_ARGUMENTS) implicit none DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_FUNCTIONS integer handle integer index integer ierr CCTK_REAL reduction_value CCTK_INT ired...
CactusTest/TestReduce
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestReduce # $Header$ implements: testreduce private: cctk_real testreduce_3gfs type = GF dim=3 { phi_gf3 } "Test grid function" cctk_real testreduce_2gfs type = GF dim=2 { phi_gf2 } "Test grid function" cctk_real testreduce_1gfs type = GF dim=1 { phi_gf1 } "Test grid functio...
# Parameter definitions for thorn TestReduce # $Header$
# Schedule definitions for thorn TestReduce # $Header$ STORAGE: testreduce_3gfs STORAGE: testreduce_2gfs STORAGE: testreduce_1gfs STORAGE: testreduce_3igfs STORAGE: testreduce_2igfs STORAGE: testreduce_1igfs STORAGE: testreduce_scalars STORAGE: testreduce_iscalars schedule TestReduce_Initial at CCTK_INITIAL { LANG:...
Initial.c
#include "cctk.h" #include "cctk_Arguments.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusTest_TestReduce_Initial_c) void TestReduce_Initial(CCTK_ARGUMENTS); void TestReduce_Initial(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS int index; int i,j,k; for(k=0; k<cctk_lsh[2]; k++) { for(j=...
CactusTest/TestReduce
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestReduce # $Header$ implements: testreduce private: cctk_real testreduce_3gfs type = GF dim=3 { phi_gf3 } "Test grid function" cctk_real testreduce_2gfs type = GF dim=2 { phi_gf2 } "Test grid function" cctk_real testreduce_1gfs type = GF dim=1 { phi_gf1 } "Test grid functio...
# Parameter definitions for thorn TestReduce # $Header$
# Schedule definitions for thorn TestReduce # $Header$ STORAGE: testreduce_3gfs STORAGE: testreduce_2gfs STORAGE: testreduce_1gfs STORAGE: testreduce_3igfs STORAGE: testreduce_2igfs STORAGE: testreduce_1igfs STORAGE: testreduce_scalars STORAGE: testreduce_iscalars schedule TestReduce_Initial at CCTK_INITIAL { LANG:...
make.code.defn
# Main make.code.defn file for thorn TestReduce # $Header$ # Source files in this directory SRCS = Reduce_Maximum.c Reduce_Sum.c Reduce_Maximum.F77 Reduce_Sum.F77 Initial.c # Subdirectories containing source files SUBDIRS =
CactusTest/TestReduce
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestReduce # $Header$ implements: testreduce private: cctk_real testreduce_3gfs type = GF dim=3 { phi_gf3 } "Test grid function" cctk_real testreduce_2gfs type = GF dim=2 { phi_gf2 } "Test grid function" cctk_real testreduce_1gfs type = GF dim=1 { phi_gf1 } "Test grid functio...
# Parameter definitions for thorn TestReduce # $Header$
# Schedule definitions for thorn TestReduce # $Header$ STORAGE: testreduce_3gfs STORAGE: testreduce_2gfs STORAGE: testreduce_1gfs STORAGE: testreduce_3igfs STORAGE: testreduce_2igfs STORAGE: testreduce_1igfs STORAGE: testreduce_scalars STORAGE: testreduce_iscalars schedule TestReduce_Initial at CCTK_INITIAL { LANG:...
Reduce_Sum.c
#include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusTest_TestReduce_Reduce_Sum_c) void TestReduceC_Sum(CCTK_ARGUMENTS); void TestReduceC_Sum(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS int handle; int index; int ierr; CCTK_REAL redu...
CactusTest/TestSchedule
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestSchedule # $Header$ implements: TestSchedule
# Parameter definitions for thorn TestSchedule # $Header$ shares: restricted: private:
# Schedule definitions for thorn TestSchedule # $Header$ schedule TestSchedule_CCTK_STARTUP at CCTK_STARTUP { LANG:C } "Test to see if function is placed in schedule and run at CCTK_STARTUP" schedule TestSchedule_CCTK_RECOVER_PARAMETERS at CCTK_RECOVER_PARAMETERS { LANG:C } "Test to see if function is placed in s...
TestSchedule.c
/*@@ @file TestSchedule.c @date Wed Aug 18 12:57:41 2004 @author Rion Dooley @desc Test functions to see if everything is scheduled correctly. @enddesc @version $Header$ @@*/ #include <stdio.h> #include <stdlib.h> #include "cctk.h" #include "cctk.h" #include "cctk_Arguments.h" s...
CactusTest/TestSchedule
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestSchedule # $Header$ implements: TestSchedule
# Parameter definitions for thorn TestSchedule # $Header$ shares: restricted: private:
# Schedule definitions for thorn TestSchedule # $Header$ schedule TestSchedule_CCTK_STARTUP at CCTK_STARTUP { LANG:C } "Test to see if function is placed in schedule and run at CCTK_STARTUP" schedule TestSchedule_CCTK_RECOVER_PARAMETERS at CCTK_RECOVER_PARAMETERS { LANG:C } "Test to see if function is placed in s...
make.code.defn
# Main make.code.defn file for thorn TestLM # $Header$ # Source files in this directory SRCS = TestSchedule.c # Subdirectories containing source files SUBDIRS =
CactusTest/TestSchedule
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestSchedule # $Header$ implements: TestSchedule
# Parameter definitions for thorn TestSchedule # $Header$ shares: restricted: private:
# Schedule definitions for thorn TestSchedule # $Header$ schedule TestSchedule_CCTK_STARTUP at CCTK_STARTUP { LANG:C } "Test to see if function is placed in schedule and run at CCTK_STARTUP" schedule TestSchedule_CCTK_RECOVER_PARAMETERS at CCTK_RECOVER_PARAMETERS { LANG:C } "Test to see if function is placed in s...
TestSchedule.h
int TestSchedule_CCTK_STARTUP(void); void TestSchedule_CCTK_RECOVER_PARAMETERS(CCTK_ARGUMENTS); void TestSchedule_CCTK_WRAGH(CCTK_ARGUMENTS); void TestSchedule_CCTK_PARAMCHECK(CCTK_ARGUMENTS); void TestSchedule_CCTK_BASEGRID(CCTK_ARGUMENTS); void TestSchedule_CCTK_INITIAL(CCTK_ARGUMENTS); void TestSchedule_CCTK_POSTINI...
CactusTest/TestStrings
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestStrings # $Header$ implements: teststrings
# Parameter definitions for thorn TestStrings # $Header$
# Schedule definitions for thorn TestStrings # $Header$ schedule PrintThoseFortranStrings at INITIAL { LANG: Fortran } "Print 1,2 and 3 strings from Fortran source code"
FCalls.F
#include "cctk.h" #include "cctk_Arguments.h" subroutine PrintThoseFortranStrings(CCTK_ARGUMENTS) DECLARE_CCTK_ARGUMENTS integer num1, num2 num1 = 1 num2 = 2 call PrintOneString(num1, num2, "Just One") call PrintTwoString(num1, num2, "Just One", "Now Two") ...
CactusTest/TestStrings
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestStrings # $Header$ implements: teststrings
# Parameter definitions for thorn TestStrings # $Header$
# Schedule definitions for thorn TestStrings # $Header$ schedule PrintThoseFortranStrings at INITIAL { LANG: Fortran } "Print 1,2 and 3 strings from Fortran source code"
make.code.defn
# Main make.code.defn file for thorn TestStrings # $Header$ # Source files in this directory SRCS = CRoutines.c FCalls.F # Subdirectories containing source files SUBDIRS =
CactusTest/TestStrings
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestStrings # $Header$ implements: teststrings
# Parameter definitions for thorn TestStrings # $Header$
# Schedule definitions for thorn TestStrings # $Header$ schedule PrintThoseFortranStrings at INITIAL { LANG: Fortran } "Print 1,2 and 3 strings from Fortran source code"
CRoutines.c
/*@@ @file CRoutines.c @date 20th June 2001 @author Gabrielle Allen @desc Test stuff with strings @enddesc @version $Id$ @@*/ #include <stdio.h> #include <stdlib.h> #include "cctk.h" #include "cctk_FortranString.h" static const char *rcsid = "$Header$"; CCTK_FILEVERS...
CactusTest/TestTable
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestTable # $Header$ implements: TestTable inherits:
# Parameter definitions for thorn TestTable # $Header$ # there are no parameters
# Schedule definitions for thorn TestTable # $Header$ schedule TestTable_driver in CCTK_STARTUP { LANG: C } "test key/value tables API"
test_table.c
/* test_table.c -- test driver for key/value tables API */ /* $Header: */ /* ** prototypes for functions local to this file * TestTable_driver ** ** CHECK_SET_GET_{INT,GENERIC_INT,REAL,COMPLEX} ** CHECK_SET_GET_{INT,REAL,GENERIC_REAL,COMPLEX}_ARRAY ** ** test_nonexistent_tables ** test_table_create_destroy ** test_se...
CactusTest/TestTable
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestTable # $Header$ implements: TestTable inherits:
# Parameter definitions for thorn TestTable # $Header$ # there are no parameters
# Schedule definitions for thorn TestTable # $Header$ schedule TestTable_driver in CCTK_STARTUP { LANG: C } "test key/value tables API"
make.code.defn
# Main make.code.defn file for thorn TestTable # $Header$ # Source files in this directory SRCS = test_table.c # Subdirectories containing source files SUBDIRS =
CactusTest/TestTimers
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestTimers # $Header$ implements: testtimers
# Parameter definitions for thorn TestTimers # $Header$ private: KEYWORD TestParameter "Parameter for measuring CCTK_Equals times" { "yes" :: "yes" "no" :: "no" "maybe" :: "maybe" } "no"
# Schedule definitions for thorn TestTimers # $Header$ schedule TimeIt_Startup at CCTK_STARTUP { LANG: C } "Set up Timers" schedule TimeIt_ShutDown at CCTK_TERMINATE { LANG: C } "Shut down Timers" schedule TimeIt at CCTK_EVOL { LANG: C } "Test out Cactus Timers"
TimeIt.c
#include <stdio.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusTest_TestTimers_TimeIt_c) #define PRINTERROR \ if (ierr < 0) \ { \ printf("Error code...
CactusTest/TestTimers
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestTimers # $Header$ implements: testtimers
# Parameter definitions for thorn TestTimers # $Header$ private: KEYWORD TestParameter "Parameter for measuring CCTK_Equals times" { "yes" :: "yes" "no" :: "no" "maybe" :: "maybe" } "no"
# Schedule definitions for thorn TestTimers # $Header$ schedule TimeIt_Startup at CCTK_STARTUP { LANG: C } "Set up Timers" schedule TimeIt_ShutDown at CCTK_TERMINATE { LANG: C } "Shut down Timers" schedule TimeIt at CCTK_EVOL { LANG: C } "Test out Cactus Timers"
make.code.defn
# Main make.code.defn file for thorn TestTimers # $Header$ # Source files in this directory SRCS = TimeIt.c # Subdirectories containing source files SUBDIRS =
CactusTest/TestTypes
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestTypes # $Header$ IMPLEMENTS: TestTypes CCTK_INT vint CCTK_INT1 vint1 CCTK_INT2 vint2 CCTK_INT4 vint4 CCTK_INT8 vint8 CCTK_REAL vreal CCTK_REAL4 vreal4 CCTK_REAL8 vreal8 #CCTK_REAL16 vreal16 CCTK_COMPLEX vcomplex CCTK_COMPLEX8 vcomplex8 CCTK_COMPLEX16 vcomplex16 #CCTK_COMPLEX32 v...
# Parameter definitions for thorn TestTypes # $Header$ CCTK_INT pint "int parameter" { *:* :: "" } 1 CCTK_REAL preal "real parameter" { *:* :: "" } 1.0 BOOLEAN pboolean "boolean parameter" { } yes STRING pstring "string parameter" { :: "" } "a"
# Schedule definitions for thorn TestTypes # $Header$ STORAGE: vint vint1 vint2 vint4 vint8 STORAGE: vreal vreal4 vreal8 #vreal16 STORAGE: vcomplex vcomplex8 vcomplex16 #vcomplex32 SCHEDULE TestTypes_C AT initial { LANG: C } "Test types in C" SCHEDULE TestTypes_Fortran AT initial { LANG: Fortran } "Test types in...
initial.F77
c -*-Fortran-*- c $Header$ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Functions.h" #include "cctk_Parameters.h" subroutine TestTypes_Fortran (CCTK_ARGUMENTS) implicit none DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_FUNCTIONS DECLARE_CCTK_PARAMETERS vint = ...
CactusTest/TestTypes
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestTypes # $Header$ IMPLEMENTS: TestTypes CCTK_INT vint CCTK_INT1 vint1 CCTK_INT2 vint2 CCTK_INT4 vint4 CCTK_INT8 vint8 CCTK_REAL vreal CCTK_REAL4 vreal4 CCTK_REAL8 vreal8 #CCTK_REAL16 vreal16 CCTK_COMPLEX vcomplex CCTK_COMPLEX8 vcomplex8 CCTK_COMPLEX16 vcomplex16 #CCTK_COMPLEX32 v...
# Parameter definitions for thorn TestTypes # $Header$ CCTK_INT pint "int parameter" { *:* :: "" } 1 CCTK_REAL preal "real parameter" { *:* :: "" } 1.0 BOOLEAN pboolean "boolean parameter" { } yes STRING pstring "string parameter" { :: "" } "a"
# Schedule definitions for thorn TestTypes # $Header$ STORAGE: vint vint1 vint2 vint4 vint8 STORAGE: vreal vreal4 vreal8 #vreal16 STORAGE: vcomplex vcomplex8 vcomplex16 #vcomplex32 SCHEDULE TestTypes_C AT initial { LANG: C } "Test types in C" SCHEDULE TestTypes_Fortran AT initial { LANG: Fortran } "Test types in...
initial.c
/*@@ @file initial.c @date Thu Apr 1 09:20:09 2004 @author Erik Schnetter @desc @enddesc @version $Header$ @@*/ #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusTest_TestTypes_TestTypes_c);...
CactusTest/TestTypes
https://bitbucket.org/cactuscode/cactustest.git
# Interface definition for thorn TestTypes # $Header$ IMPLEMENTS: TestTypes CCTK_INT vint CCTK_INT1 vint1 CCTK_INT2 vint2 CCTK_INT4 vint4 CCTK_INT8 vint8 CCTK_REAL vreal CCTK_REAL4 vreal4 CCTK_REAL8 vreal8 #CCTK_REAL16 vreal16 CCTK_COMPLEX vcomplex CCTK_COMPLEX8 vcomplex8 CCTK_COMPLEX16 vcomplex16 #CCTK_COMPLEX32 v...
# Parameter definitions for thorn TestTypes # $Header$ CCTK_INT pint "int parameter" { *:* :: "" } 1 CCTK_REAL preal "real parameter" { *:* :: "" } 1.0 BOOLEAN pboolean "boolean parameter" { } yes STRING pstring "string parameter" { :: "" } "a"
# Schedule definitions for thorn TestTypes # $Header$ STORAGE: vint vint1 vint2 vint4 vint8 STORAGE: vreal vreal4 vreal8 #vreal16 STORAGE: vcomplex vcomplex8 vcomplex16 #vcomplex32 SCHEDULE TestTypes_C AT initial { LANG: C } "Test types in C" SCHEDULE TestTypes_Fortran AT initial { LANG: Fortran } "Test types in...
make.code.defn
# Main make.code.defn file for thorn TestTypes # $Header$ # Source files in this directory SRCS = initial.c initial.F77 # Subdirectories containing source files SUBDIRS =
CactusUtils/Formaline
https://bitbucket.org/cactuscode/cactusutils.git
# Configuration definition for thorn Formaline OPTIONAL MPI { }
# Interface definition for thorn Formaline IMPLEMENTS: Formaline # for HTTP_Port() USES INCLUDE HEADER: http_Content.h USES INCLUDE HEADER: Publish.h # Return a pointer to an unmodifiable C string # which contains a unique ID for this configuration CCTK_POINTER_TO_CONST \ FUNCTION UniqueConfigID (CCTK_POINTER_TO_...
# Parameter definitions for thorn Formaline # Global parameters BOOLEAN verbose "Produce screen output" STEERABLE=always { } no # Parameters for collecting metadata BOOLEAN collect_metadata "Collect metadata and output it in various ways" STEERABLE=always { } yes REAL update_interval "Update interval for the m...
# Schedule definitions for thorn Formaline if (output_source) { SCHEDULE Formaline_OutputSource AT wragh { LANG: C } "Output Cactus source tree" } if (collect_metadata) { SCHEDULE Formaline_PrintIDs AT startup { LANG: C OPTIONS: meta } "Print the build and simulation ids" SCHEDULE GROUP...
output_source.c
#include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef CCTK_PTHREADS #include <pthread.h> #endif // Choose whether to output tarballs in the background // Don't ...
CactusUtils/Formaline
https://bitbucket.org/cactuscode/cactusutils.git
# Configuration definition for thorn Formaline OPTIONAL MPI { }
# Interface definition for thorn Formaline IMPLEMENTS: Formaline # for HTTP_Port() USES INCLUDE HEADER: http_Content.h USES INCLUDE HEADER: Publish.h # Return a pointer to an unmodifiable C string # which contains a unique ID for this configuration CCTK_POINTER_TO_CONST \ FUNCTION UniqueConfigID (CCTK_POINTER_TO_...
# Parameter definitions for thorn Formaline # Global parameters BOOLEAN verbose "Produce screen output" STEERABLE=always { } no # Parameters for collecting metadata BOOLEAN collect_metadata "Collect metadata and output it in various ways" STEERABLE=always { } yes REAL update_interval "Update interval for the m...
# Schedule definitions for thorn Formaline if (output_source) { SCHEDULE Formaline_OutputSource AT wragh { LANG: C } "Output Cactus source tree" } if (collect_metadata) { SCHEDULE Formaline_PrintIDs AT startup { LANG: C OPTIONS: meta } "Print the build and simulation ids" SCHEDULE GROUP...
rdf.hh
#ifndef FORMALINE_RDF_HH #define FORMALINE_RDF_HH #include "cctk.h" #include <sstream> #include <string> #include <vector> #include "storage.hh" namespace Formaline { typedef struct { std::string type; std::string value; } rdfScalarValue; typedef struct { std::string key; rdfScalarValue value; } rdfTableE...
CactusUtils/Formaline
https://bitbucket.org/cactuscode/cactusutils.git
# Configuration definition for thorn Formaline OPTIONAL MPI { }
# Interface definition for thorn Formaline IMPLEMENTS: Formaline # for HTTP_Port() USES INCLUDE HEADER: http_Content.h USES INCLUDE HEADER: Publish.h # Return a pointer to an unmodifiable C string # which contains a unique ID for this configuration CCTK_POINTER_TO_CONST \ FUNCTION UniqueConfigID (CCTK_POINTER_TO_...
# Parameter definitions for thorn Formaline # Global parameters BOOLEAN verbose "Produce screen output" STEERABLE=always { } no # Parameters for collecting metadata BOOLEAN collect_metadata "Collect metadata and output it in various ways" STEERABLE=always { } yes REAL update_interval "Update interval for the m...
# Schedule definitions for thorn Formaline if (output_source) { SCHEDULE Formaline_OutputSource AT wragh { LANG: C } "Output Cactus source tree" } if (collect_metadata) { SCHEDULE Formaline_PrintIDs AT startup { LANG: C OPTIONS: meta } "Print the build and simulation ids" SCHEDULE GROUP...
multistorage.hh
#ifndef FORMALINE_MULTISTORAGE_HH #define FORMALINE_MULTISTORAGE_HH #include <list> #include "cctk.h" #include "storage.hh" namespace Formaline { class multistorage { std::list<storage *> stores; multistorage(multistorage const &); multistorage operator=(multistorage const &); public: multistorage(); ...
CactusUtils/Formaline
https://bitbucket.org/cactuscode/cactusutils.git
# Configuration definition for thorn Formaline OPTIONAL MPI { }
# Interface definition for thorn Formaline IMPLEMENTS: Formaline # for HTTP_Port() USES INCLUDE HEADER: http_Content.h USES INCLUDE HEADER: Publish.h # Return a pointer to an unmodifiable C string # which contains a unique ID for this configuration CCTK_POINTER_TO_CONST \ FUNCTION UniqueConfigID (CCTK_POINTER_TO_...
# Parameter definitions for thorn Formaline # Global parameters BOOLEAN verbose "Produce screen output" STEERABLE=always { } no # Parameters for collecting metadata BOOLEAN collect_metadata "Collect metadata and output it in various ways" STEERABLE=always { } yes REAL update_interval "Update interval for the m...
# Schedule definitions for thorn Formaline if (output_source) { SCHEDULE Formaline_OutputSource AT wragh { LANG: C } "Output Cactus source tree" } if (collect_metadata) { SCHEDULE Formaline_PrintIDs AT startup { LANG: C OPTIONS: meta } "Print the build and simulation ids" SCHEDULE GROUP...
announce.cc
#include <algorithm> #include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <list> #include <sstream> #include <string> #include <utility> #include <vector> #include "cctk.h" #include "cctk_Arguments.h" #include "cc...