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 |
|---|---|---|---|---|---|---|---|
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... | storage.hh | #ifndef FORMALINE_STORAGE_HH
#define FORMALINE_STORAGE_HH
#include "cctk.h"
namespace Formaline {
class storage {
public:
enum state { initial, update, final };
private:
enum state m_state;
public:
storage(enum state);
virtual ~storage();
enum state get_state() const;
virtual storage *open_group(cha... |
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... | thornlist.hh | #ifndef FORMALINE_THORNLIST_HH
#define FORMALINE_THORNLIST_HH
namespace Formaline {
namespace ThornList {
char const *const *ThornNames();
int NumThorns();
} // namespace ThornList
} // namespace Formaline
#endif /* #ifndef FORMALINE_THORNLIST_HH */
|
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... | file.hh | #ifndef FORMALINE_FILE_HH
#define FORMALINE_FILE_HH
#include <fstream>
#include <string>
#include "storage.hh"
namespace Formaline {
class file : public storage {
std::ofstream fil;
std::string const path;
file *const parent;
public:
file(char const *id, enum state st, char const *p = "", file *const par =... |
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... | file.cc | #include <cassert>
#include <iomanip>
#include <ios>
#include <limits>
#include <sstream>
#include "cctk_Parameters.h"
#include "file.hh"
using namespace std;
namespace Formaline {
file::file(char const *const id, enum state const st, char const *const p,
file *const par)
: storage(st), path(p), par... |
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... | make.configuration.deps | # make.configuration.deps file for thorn Formaline -*-Makefile-*-
# Some configury magic
# Is this gnu tar? If so, set this to 1, otherwise to 0. This is used
# to treat an exit code of 1 from gnu tar as non-fatal. This exit code
# indicates that files changed while reading, which can happen if the
# atime change... |
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.cc | #include "multistorage.hh"
using namespace std;
namespace Formaline {
multistorage::multistorage() {}
multistorage::~multistorage() { close(); }
void multistorage::close() {
for (list<storage *>::const_iterator it = stores.begin(); it != stores.end();
++it) {
delete *it;
}
stores.clear();
}
void ... |
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.cc | #include <cassert>
#include <cctype>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <string>
#include <sstream>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
#include "cctk.h... |
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... | storage.cc | #include <sstream>
#include "storage.hh"
namespace Formaline {
storage::storage(enum state const st) : m_state(st) {}
storage::~storage() {}
enum storage::state storage::get_state() const { return m_state; }
} // namespace Formaline
|
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... | thornlist.cc | #include "thornlist.hh"
namespace Formaline {
namespace ThornList {
// This header file is automatically generated by the flesh.
// It defines
// static char const * const thorn_name[];
// static int const nthorns;
#include "thornlist.h"
char const *const *ThornNames() { return thorn_name; }
int NumThorns() ... |
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... | senddata.cc | #include <cctype>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <list>
#include <set>
#include <sstream>
#include <string>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
#include "cctk.h"
#include "cctk_Parameters.h"
#include "util_Network.h"
#include "senddata.hh"
namespace Forma... |
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... | json_file.cc | #include <cassert>
#include <cctype>
#include <iomanip>
#include <ios>
#include <limits>
#include <sstream>
#include "cctk_Parameters.h"
#include "json_file.hh"
using namespace std;
namespace Formaline {
json_file::json_file(char const *const id, enum state const st,
json_file *const par)
... |
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... | portal.hh | #ifndef FORMALINE_PORTAL_HH
#define FORMALINE_PORTAL_HH
#include <sstream>
#include <string>
#include "storage.hh"
namespace Formaline {
class portal : public storage {
std::ostringstream msgbuf;
std::string const path;
portal *const parent;
public:
portal(char const *id, enum state st, char const *p = "",... |
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... | make.code.defn | # Main make.code.defn file for thorn Formaline -*-Makefile-*-
# Source files in this directory
SRCS = announce.cc file.cc id.cc json_file.cc multistorage.cc output_source.c portal.cc rdf.cc rdf_publisher.cc senddata.cc storage.cc thornlist.cc
# 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... | id.hh | #ifndef FORMALINE_ID_HH
#define FORMALINE_ID_HH
#include "cctk.h"
namespace Formaline {
// Get the configuration id
char const *get_config_id(cGH const *const cctkGH);
// Get the unique build id
char const *get_build_id(cGH const *const cctkGH);
// Get a unique simulation id
char const *get_simulation_id(cGH const... |
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_publisher.cc | #include <algorithm>
#include <cassert>
#include <cctype>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include "util_Table.h"
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
#include "Publish.h"
#include "rdf.hh"
namespace Formaline {
// buffer of published RDF me... |
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... | make.code.deps | # make.code.deps file for thorn Formaline -*-Makefile-*-
# Store the utilities in the scratch directory of this configuration.
# This has to live here in the file make.code.deps instead of in the
# file make.configuration.deps because only here the location of the
# source directory is known.
FORMALINE_BIN_DIR = $... |
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... | senddata.hh | #ifndef SENDDATA_HH
#define SENDDATA_HH
#include <list>
#include <string>
namespace Formaline {
using namespace std;
int SendData(string hostname, int port, string data);
} // namespace Formaline
#endif // #ifndef SENDDATA_HH
|
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... | json_file.hh | #ifndef FORMALINE_JSON_FILE_HH
#define FORMALINE_JSON_FILE_HH
#include <fstream>
#include <string>
#include "storage.hh"
namespace Formaline {
class json_file : public storage {
std::ofstream fil;
json_file *const parent;
bool need_comma;
int indent_level;
public:
json_file(char const *id, enum state st... |
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... | id.cc | #include <cctype>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "cctk.h"
#include "cctk_Parameters.h"
#include "util_Network.h"
// IRIX wants this before <time.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if TIM... |
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... | portal.cc | #include <cassert>
#include <cctype>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <string>
#include <sstream>
#include <unistd.h>
#include "cctk.h"
#include "cctk_Parameters.h"
#include "util_Network.h"
... |
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... | util/gethostname.pl | #! /usr/bin/perl -w
# Find the host name of this machine
# 2006-05-02 Erik Schnetter <schnetter@cct.lsu.edu>
# Search through the host name and all aliases.
# Use the first name that contains dots, indicating that this name is
# a long host name that includes a domain name.
# If there is no name that includes a doma... |
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... | util/git-ssh.sh | #! /bin/bash
if [ -z "$CACTUS_CENTRAL_SSH_ID" ]; then
ssh "$@"
else
ssh -i "$CACTUS_CENTRAL_SSH_ID" "$@"
fi
|
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... | util/formaline.py | # gdb extension script to extract formaline tarballs from Cactus executable
# Copyright (C) 2013 Roland Haas
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or... |
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... | util/VERSION | This file marks internal ABI versions of thorn Formaline.
Each auto-generated file depends on this file.
Thus, whenever this file changes, all auto-generated files are recreated.
2005-08-22: Change layout of struct sourceinfo
2010-06-23: Move thorn to a new arrangement
2010-08-06: Correct severe error in autogeneratio... |
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... | util/makeblob.pl | #! /usr/bin/perl -w
use diagnostics;
use warnings;
use strict;
my $items_per_line = 16;
my $items_per_file = 128 * 1024;
$#ARGV == 2 or die "ARGV=@ARGV";
my $basename = $ARGV[0];
my $arrangement = $ARGV[1];
my $thorn = $ARGV[2];
$thorn ne '' or die;
# Write several files, each with a maximum length
my $done = 0... |
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... | util/makemetablob.pl | #! /usr/bin/perl -w
use strict;
print <<EOF;
/* This is an auto-generated file -- do not edit */
\#include <stddef.h>
\#include <stdlib.h>
struct datainfo
{
unsigned char const * data;
size_t length;
struct datainfo const * next;
};
struct sourceinfo
{
struct datainfo const * first;
char const * arrangem... |
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... | util/update-git-repo.pl | #! /usr/bin/perl -w
# 2015-10-17 Erik Schnetter <schnetter@gmail.com>
# Take a snapshot of the Cactus source tree rooted at the current directory,
# creating a commit in the git repository located at $git_repo. The repository
# is expected to be for a single Cactus configuration, and is created if it does
# not exist... |
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... | util/formaline_receptacle.pl | #!/usr/bin/perl -Tw
# Taken from http://www.perl.com/doc/FMTEYEWTK/IPC/inet.html
# Adapted 2005-10-07 by Erik Schnetter <schnetter@cct.lsu.edu>
require 5.002;
use strict;
BEGIN { $ENV{PATH} = '/usr/ucb:/bin' }
use Socket;
use Carp;
use File::Temp qw/ :mktemp /;
sub spawn; # forward declaration
sub logmsg { print ... |
CactusUtils/MemSpeed | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn MemSpeed
OPTIONAL MPI
{
}
# Floating point benchmarks use explicit vectorization
REQUIRES Vectors
| # Interface definition for thorn MemSpeed
IMPLEMENTS: MemSpeed
USES INCLUDE HEADER: vectors.h
CCTK_INT FUNCTION GetNumSMTThreads()
REQUIRES FUNCTION GetNumSMTThreads
CCTK_INT FUNCTION GetMaxSMTThreads()
REQUIRES FUNCTION GetMaxSMTThreads
# Obtain information about caches and memory sizes from thorn hwloc
CCTK_INT... | # Parameter definitions for thorn MemSpeed
BOOLEAN verbose "Verbose output" STEERABLE=always
{
} "no"
BOOLEAN skip_largemem_benchmarks "Skip benchmarks that require much memory" STEERABLE=always
{
} "no"
| # Schedule definitions for thorn MemSpeed
SCHEDULE MemSpeed_MeasureSpeed AT wragh
{
LANG: C
OPTIONS: meta
} "Measure CPU, memory, cache speeds"
| memspeed.cc | #include <cctk.h>
#include <cctk_Arguments.h>
#include <cctk_Parameters.h>
#undef VECTORISE_STREAMING_STORES
#define VECTORISE_STREAMING_STORES 1
#include <vectors.h>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <vector>
using namespace std;
#ifdef HAVE_CAPAB... |
CactusUtils/MemSpeed | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn MemSpeed
OPTIONAL MPI
{
}
# Floating point benchmarks use explicit vectorization
REQUIRES Vectors
| # Interface definition for thorn MemSpeed
IMPLEMENTS: MemSpeed
USES INCLUDE HEADER: vectors.h
CCTK_INT FUNCTION GetNumSMTThreads()
REQUIRES FUNCTION GetNumSMTThreads
CCTK_INT FUNCTION GetMaxSMTThreads()
REQUIRES FUNCTION GetMaxSMTThreads
# Obtain information about caches and memory sizes from thorn hwloc
CCTK_INT... | # Parameter definitions for thorn MemSpeed
BOOLEAN verbose "Verbose output" STEERABLE=always
{
} "no"
BOOLEAN skip_largemem_benchmarks "Skip benchmarks that require much memory" STEERABLE=always
{
} "no"
| # Schedule definitions for thorn MemSpeed
SCHEDULE MemSpeed_MeasureSpeed AT wragh
{
LANG: C
OPTIONS: meta
} "Measure CPU, memory, cache speeds"
| make.code.defn | # Main make.code.defn file for thorn MemSpeed
# Source files in this directory
SRCS = memspeed.cc
# Subdirectories containing source files
SUBDIRS =
|
CactusUtils/NaNCatcher | https://bitbucket.org/cactuscode/cactusutils.git | # Interface definition for thorn NaNCatcher
IMPLEMENTS: NaNCatcher
| # Parameter definitions for thorn NaNCatcher
| # Schedule definitions for thorn NaNCatcher
SCHEDULE catch_nans AT startup
{
LANG: C
} "Disallow nans and infinities"
| catch_nans.c | /* C99 provides standard functions to deal with floating point
* exceptions. Alas, they fail to provide the features we want. If you
* manage to figure out a portable way to enable individual traps,
* tell us about it. For now, we only support glibc-based and x86
* systems. [dk]
*/
#define _GNU_SOURCE
#include <... | |
CactusUtils/NaNCatcher | https://bitbucket.org/cactuscode/cactusutils.git | # Interface definition for thorn NaNCatcher
IMPLEMENTS: NaNCatcher
| # Parameter definitions for thorn NaNCatcher
| # Schedule definitions for thorn NaNCatcher
SCHEDULE catch_nans AT startup
{
LANG: C
} "Disallow nans and infinities"
| make.code.defn | # Main make.code.defn file for thorn NaNCatcher
# $Header$
# Source files in this directory
SRCS = catch_nans.c
# Subdirectories containing source files
SUBDIRS =
| |
CactusUtils/NaNChecker | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn NaNChecker
# $Header$
PROVIDES NaNChecker
{
SCRIPT
LANG
}
| # Interface definition for thorn NaNChecker
# $Header$
implements: NaNChecker
inherits: Reduce
INCLUDES HEADER: NaNCheck.h in NaNChecker.h
CCTK_INT FUNCTION CheckVarsForNaN \
(CCTK_POINTER_TO_CONST IN cctkGH, \
CCTK_INT IN report_max, \
CCTK_STRING ... | # Parameter definitions for thorn NaNChecker
# $Header$
#############################################################################
### declare NaNChecker parameters
#############################################################################
private:
INT check_every "How often to check for NaNs" STEERABLE = ALWAY... | # Schedule definitions for thorn NaNChecker
# $Header$
if (*check_vars && check_every > 0)
{
STORAGE: NaNmask NaNsFound
schedule NaNChecker_ResetCounter at BASEGRID
{
LANG: C
OPTIONS: global
} "Reset the NaNChecker::NaNsFound counter"
schedule NaNChecker_ResetCounter at PRESTEP
{
LANG: ... | NaNCheck.cc | /*@@
@file NaNCheck.c
@date Sat 21 Apr 2001
@author Thomas Radke
@desc
Routines to check CCTK real and complex variables
against Not-a-Number values.
@enddesc
@version $Id$
@@*/
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#inclu... |
CactusUtils/NaNChecker | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn NaNChecker
# $Header$
PROVIDES NaNChecker
{
SCRIPT
LANG
}
| # Interface definition for thorn NaNChecker
# $Header$
implements: NaNChecker
inherits: Reduce
INCLUDES HEADER: NaNCheck.h in NaNChecker.h
CCTK_INT FUNCTION CheckVarsForNaN \
(CCTK_POINTER_TO_CONST IN cctkGH, \
CCTK_INT IN report_max, \
CCTK_STRING ... | # Parameter definitions for thorn NaNChecker
# $Header$
#############################################################################
### declare NaNChecker parameters
#############################################################################
private:
INT check_every "How often to check for NaNs" STEERABLE = ALWAY... | # Schedule definitions for thorn NaNChecker
# $Header$
if (*check_vars && check_every > 0)
{
STORAGE: NaNmask NaNsFound
schedule NaNChecker_ResetCounter at BASEGRID
{
LANG: C
OPTIONS: global
} "Reset the NaNChecker::NaNsFound counter"
schedule NaNChecker_ResetCounter at PRESTEP
{
LANG: ... | NaNCheck.h | /*@@
@header NaNCheck.h
@date Mon 10 Dec 2001
@author Thomas Radke
@desc
Prototypes for NaNChecker API routines
@enddesc
@version $Header$
@@*/
#ifndef NANCHECKER_NANCHECK_H
#define NANCHECKER_NANCHECK_H 1
#ifdef __cplusplus
namespace NaNChecker {
extern "C" {
#endif
/* prototyp... |
CactusUtils/NaNChecker | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn NaNChecker
# $Header$
PROVIDES NaNChecker
{
SCRIPT
LANG
}
| # Interface definition for thorn NaNChecker
# $Header$
implements: NaNChecker
inherits: Reduce
INCLUDES HEADER: NaNCheck.h in NaNChecker.h
CCTK_INT FUNCTION CheckVarsForNaN \
(CCTK_POINTER_TO_CONST IN cctkGH, \
CCTK_INT IN report_max, \
CCTK_STRING ... | # Parameter definitions for thorn NaNChecker
# $Header$
#############################################################################
### declare NaNChecker parameters
#############################################################################
private:
INT check_every "How often to check for NaNs" STEERABLE = ALWAY... | # Schedule definitions for thorn NaNChecker
# $Header$
if (*check_vars && check_every > 0)
{
STORAGE: NaNmask NaNsFound
schedule NaNChecker_ResetCounter at BASEGRID
{
LANG: C
OPTIONS: global
} "Reset the NaNChecker::NaNsFound counter"
schedule NaNChecker_ResetCounter at PRESTEP
{
LANG: ... | make.code.defn | # Main make.code.defn file for thorn NaNChecker
# $Header$
# Source files in this directory
SRCS = NaNCheck.cc
|
CactusUtils/Nice | https://bitbucket.org/cactuscode/cactusutils.git | # Interface definition for thorn Nice
implements: nice
| # Parameter definitions for thorn Nice
CCTK_INT Nice_nice "Nice level"
{
-20:19 :: "The range for the nice is from -20 to 19, but only root can use negative values, default is 19."
} 19
| # Schedule definitions for thorn Nice
schedule Nice_Renice at CCTK_STARTUP
{
LANG: C
} "Renice the process"
| nice.c | #include "cctk.h"
#include "cctk_WarnLevel.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
/* manpage of getpriority:
Including <sys/time.h> is not required these days,
but increases portability.
*/
#include <sys/time.h>
#include <errno.h>
#include <sys/resource.h>
int Nice_Renice(void);
int Ni... | |
CactusUtils/Nice | https://bitbucket.org/cactuscode/cactusutils.git | # Interface definition for thorn Nice
implements: nice
| # Parameter definitions for thorn Nice
CCTK_INT Nice_nice "Nice level"
{
-20:19 :: "The range for the nice is from -20 to 19, but only root can use negative values, default is 19."
} 19
| # Schedule definitions for thorn Nice
schedule Nice_Renice at CCTK_STARTUP
{
LANG: C
} "Renice the process"
| make.code.defn | # Main make.code.defn file for thorn Nice
# Source files in this directory
SRCS = nice.c
| |
CactusUtils/NoMPI | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definition for thorn NoMPI
OPTIONAL MPI
{
}
| # Interface definition for thorn NoMPI
IMPLEMENTS: NoMPI
INCLUDES HEADER: nompi.h IN nompi.h
| # Parameter definitions for thorn NoMPI
| # Schedule definitions for thorn NoMPI
| nompi.h | #ifndef NOMPI_H
#define NOMPI_H
/* Provide (dummy) replacements for many MPI routines in case MPI is
not available */
#include <cctk.h>
#ifndef CCTK_MPI
#include <stdlib.h>
typedef ptrdiff_t MPI_Aint;
typedef int MPI_Comm; /* no content */
typedef MPI_Aint MPI_Datatype;
typedef enum {
MPI_LOR,
MPI_MAX,
... |
CactusUtils/NoMPI | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definition for thorn NoMPI
OPTIONAL MPI
{
}
| # Interface definition for thorn NoMPI
IMPLEMENTS: NoMPI
INCLUDES HEADER: nompi.h IN nompi.h
| # Parameter definitions for thorn NoMPI
| # Schedule definitions for thorn NoMPI
| make.code.defn | # Main make.code.defn file for thorn NoMPI
# Source files in this directory
SRCS = nompi.c
# Subdirectories containing source files
SUBDIRS =
|
CactusUtils/NoMPI | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definition for thorn NoMPI
OPTIONAL MPI
{
}
| # Interface definition for thorn NoMPI
IMPLEMENTS: NoMPI
INCLUDES HEADER: nompi.h IN nompi.h
| # Parameter definitions for thorn NoMPI
| # Schedule definitions for thorn NoMPI
| nompi.c | #include <cctk.h>
#ifndef CCTK_MPI
#include <assert.h>
#include <stdlib.h>
#include <string.h>
// IRIX wants this before <time.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#elif HAVE_TIME_H
#inclu... |
CactusUtils/SystemStatistics | https://bitbucket.org/cactuscode/cactusutils.git |
implements: SystemStatistics
# Use REAL to prevent overflow
REAL process_memory TYPE=array DIM=1 SIZE=1 DISTRIB=constant TAGS='Checkpoint="no"'
{
maxrss, majflt, arena, ordblks, hblks, hblkhd, uordblks, fordblks, keepcost, swap_used
} "Process memory statistics"
INT process_memory_mb TYPE=array DIM=1 SIZE=1 DISTRI... | STORAGE: process_memory, process_memory_mb, process_memory_kb
schedule SystemStatistics_Collect at CCTK_ANALYSIS
{
LANG: C
OPTIONS: GLOBAL
} "Collect system statistics"
| systemstatistics.cc |
#include <stdio.h>
#include <string.h>
#include <sys/resource.h>
#include <unistd.h>
#include <stdlib.h>
#include "assert.h"
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
// There doesn't seem to be a Cactus macro defined for the Mach... | ||
CactusUtils/SystemStatistics | https://bitbucket.org/cactuscode/cactusutils.git |
implements: SystemStatistics
# Use REAL to prevent overflow
REAL process_memory TYPE=array DIM=1 SIZE=1 DISTRIB=constant TAGS='Checkpoint="no"'
{
maxrss, majflt, arena, ordblks, hblks, hblkhd, uordblks, fordblks, keepcost, swap_used
} "Process memory statistics"
INT process_memory_mb TYPE=array DIM=1 SIZE=1 DISTRI... | STORAGE: process_memory, process_memory_mb, process_memory_kb
schedule SystemStatistics_Collect at CCTK_ANALYSIS
{
LANG: C
OPTIONS: GLOBAL
} "Collect system statistics"
| make.code.defn |
# Source files in this directory
SRCS = systemstatistics.cc
# Subdirectories containing source files
SUBDIRS =
| ||
CactusUtils/SystemTopology | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn SystemTopology
REQUIRES hwloc MPI
| # Interface definition for thorn SystemTopology
IMPLEMENTS: SystemTopology
CCTK_INT FUNCTION GetNumSMTThreads()
PROVIDES FUNCTION GetNumSMTThreads WITH ST_GetNumSMTThreads LANGUAGE C
CCTK_INT FUNCTION GetMaxSMTThreads()
PROVIDES FUNCTION GetMaxSMTThreads WITH ST_GetMaxSMTThreads LANGUAGE C
# The ACML library on Krak... | # Parameter definitions for thorn SystemTopology
KEYWORD set_thread_bindings "Set thread bindings (aka thread-CPU affinity)" STEERABLE=recover
{
"yes" :: "set bindings"
"no" :: "no not modify bindings"
"auto" :: "depends on system architecture"
} "auto"
KEYWORD thread_layout "How to lay out threads over core... | # Schedule definitions for thorn SystemTopology
SCHEDULE ST_system_topology AT startup AFTER hwloc_lstopo BEFORE Driver_Startup
{
LANG: C
} "Output and/or modify system topology and hardware locality"
| system_topology.cc | #include <cctk.h>
#include <cctk_Parameters.h>
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <list>
#include <map>
#include <string>
#include <sstream>
#include <vector>
#ifdef HAVE_CAPABILITY_MPI
#include <mpi.h>
#if defined __bgq__
// The processor names on ... |
CactusUtils/SystemTopology | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn SystemTopology
REQUIRES hwloc MPI
| # Interface definition for thorn SystemTopology
IMPLEMENTS: SystemTopology
CCTK_INT FUNCTION GetNumSMTThreads()
PROVIDES FUNCTION GetNumSMTThreads WITH ST_GetNumSMTThreads LANGUAGE C
CCTK_INT FUNCTION GetMaxSMTThreads()
PROVIDES FUNCTION GetMaxSMTThreads WITH ST_GetMaxSMTThreads LANGUAGE C
# The ACML library on Krak... | # Parameter definitions for thorn SystemTopology
KEYWORD set_thread_bindings "Set thread bindings (aka thread-CPU affinity)" STEERABLE=recover
{
"yes" :: "set bindings"
"no" :: "no not modify bindings"
"auto" :: "depends on system architecture"
} "auto"
KEYWORD thread_layout "How to lay out threads over core... | # Schedule definitions for thorn SystemTopology
SCHEDULE ST_system_topology AT startup AFTER hwloc_lstopo BEFORE Driver_Startup
{
LANG: C
} "Output and/or modify system topology and hardware locality"
| make.code.defn | # Main make.code.defn file for thorn SystemTopology
# Source files in this directory
SRCS = system_topology.cc
# Subdirectories containing source files
SUBDIRS =
|
CactusUtils/TerminationTrigger | https://bitbucket.org/cactuscode/cactusutils.git | # Interface definition for thorn TerminationTrigger
IMPLEMENTS: TerminationTrigger
CCTK_REAL watchminutes TYPE=scalar
| # Parameter definitions for thorn TerminationTrigger
PRIVATE:
REAL on_remaining_walltime "When to trigger termination in MINUTES" STEERABLE = ALWAYS
{
0.0 :: "Don't trigger termination"
(0.0:* :: "So many minutes before your job walltime is over"
} 0.0
REAL max_walltime "Walltime in HOURS allocated for this j... | # Schedule definitions for thorn TerminationTrigger
STORAGE: watchminutes
SCHEDULE TerminationTrigger_StartTimer AT wragh
{
LANG: C
} "Start timer"
SCHEDULE TerminationTrigger_ResetMinutes AT post_recover_variables
{
LANG: C
OPTIONS: global
} "Reset Watchtime"
SCHEDULE TerminationTrigger_CheckWalltime AT an... | walltime.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
#include "cctk_Termination.h"
#include "cctk_Timers.h"
void TerminationTrigger_StartTimer(CCTK_ARGUMENTS) {
DECLARE_CCTK_ARGUMENTS;
DECLARE_CCTK_PARAMETERS;
/* only one processo... | |
CactusUtils/TerminationTrigger | https://bitbucket.org/cactuscode/cactusutils.git | # Interface definition for thorn TerminationTrigger
IMPLEMENTS: TerminationTrigger
CCTK_REAL watchminutes TYPE=scalar
| # Parameter definitions for thorn TerminationTrigger
PRIVATE:
REAL on_remaining_walltime "When to trigger termination in MINUTES" STEERABLE = ALWAYS
{
0.0 :: "Don't trigger termination"
(0.0:* :: "So many minutes before your job walltime is over"
} 0.0
REAL max_walltime "Walltime in HOURS allocated for this j... | # Schedule definitions for thorn TerminationTrigger
STORAGE: watchminutes
SCHEDULE TerminationTrigger_StartTimer AT wragh
{
LANG: C
} "Start timer"
SCHEDULE TerminationTrigger_ResetMinutes AT post_recover_variables
{
LANG: C
OPTIONS: global
} "Reset Watchtime"
SCHEDULE TerminationTrigger_CheckWalltime AT an... | make.code.defn | # Main make.code.defn file for thorn TerminationTrigger
# Source files in this directory
SRCS = walltime.c file.c
# Subdirectories containing source files
SUBDIRS =
| |
CactusUtils/TerminationTrigger | https://bitbucket.org/cactuscode/cactusutils.git | # Interface definition for thorn TerminationTrigger
IMPLEMENTS: TerminationTrigger
CCTK_REAL watchminutes TYPE=scalar
| # Parameter definitions for thorn TerminationTrigger
PRIVATE:
REAL on_remaining_walltime "When to trigger termination in MINUTES" STEERABLE = ALWAYS
{
0.0 :: "Don't trigger termination"
(0.0:* :: "So many minutes before your job walltime is over"
} 0.0
REAL max_walltime "Walltime in HOURS allocated for this j... | # Schedule definitions for thorn TerminationTrigger
STORAGE: watchminutes
SCHEDULE TerminationTrigger_StartTimer AT wragh
{
LANG: C
} "Start timer"
SCHEDULE TerminationTrigger_ResetMinutes AT post_recover_variables
{
LANG: C
OPTIONS: global
} "Reset Watchtime"
SCHEDULE TerminationTrigger_CheckWalltime AT an... | file.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
#include "cctk_Termination.h"
#include "cctk_Timers.h"
#include "util_String.h"
enum { BUFLEN = 10000 };
static const char *get_termination_file(void) {
DECLARE_CCTK_PARAMETERS;
... | |
CactusUtils/TimerReport | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definition for thorn TimerReport
# $Header$
OPTIONAL MPI
{
}
| # Interface definition for thorn TimerReport
# $Header$
implements: timerreport
CCTK_INT FUNCTION IO_TruncateOutputFiles (CCTK_POINTER_TO_CONST IN cctkGH)
REQUIRES FUNCTION IO_TruncateOutputFiles
| # Parameter definitions for thorn TimerReport
# $Header$
private:
# These parameters control output frequency based on iteration. Output still
# happens before the run terminates and, if enabled, before checkpoints.
INT out_every "How often to output timer report to screen" STEERABLE=ALWAYS
{
0 :: "No periodic ou... | # Schedule definitions for thorn TimerReport
# $Header$
SCHEDULE TimerReport_OutputEvery AS zzz_TimerReport_Output AT CCTK_ANALYSIS
{
LANG: C
OPTIONS: global
} "Print the timer report"
SCHEDULE TimerReport_OutputTerminate AS zzz_TimerReport_Output AT CCTK_TERMINATE BEFORE Driver_Terminate
{
LANG: C
OPTIONS: ... | Output.cc | /*@@
@file Output.c
@date July 6 2003
@author Gabrielle Allen
@desc
Functions to report the timers
@enddesc
@@*/
#include <cctk.h>
#include <cctk_Arguments.h>
#include <cctk_Parameters.h>
#include <cctk_Schedule.h>
#include <algorithm>
#include <array>
#include <cassert>
#include <... |
CactusUtils/TimerReport | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definition for thorn TimerReport
# $Header$
OPTIONAL MPI
{
}
| # Interface definition for thorn TimerReport
# $Header$
implements: timerreport
CCTK_INT FUNCTION IO_TruncateOutputFiles (CCTK_POINTER_TO_CONST IN cctkGH)
REQUIRES FUNCTION IO_TruncateOutputFiles
| # Parameter definitions for thorn TimerReport
# $Header$
private:
# These parameters control output frequency based on iteration. Output still
# happens before the run terminates and, if enabled, before checkpoints.
INT out_every "How often to output timer report to screen" STEERABLE=ALWAYS
{
0 :: "No periodic ou... | # Schedule definitions for thorn TimerReport
# $Header$
SCHEDULE TimerReport_OutputEvery AS zzz_TimerReport_Output AT CCTK_ANALYSIS
{
LANG: C
OPTIONS: global
} "Print the timer report"
SCHEDULE TimerReport_OutputTerminate AS zzz_TimerReport_Output AT CCTK_TERMINATE BEFORE Driver_Terminate
{
LANG: C
OPTIONS: ... | make.code.defn | # Main make.code.defn file for thorn TimerReport
# $Header$
# Source files in this directory
SRCS = Output.cc
# Subdirectories containing source files
SUBDIRS =
|
CactusUtils/Trigger | https://bitbucket.org/cactuscode/cactusutils.git | # Interface definition for thorn Trigger
inherits: IO
implements: trigger
CCTK_REAL Trigger_Vars DISTRIB=CONSTANT tags='checkpoint="no"'
{
trigger_cctk_iteration
trigger_cctk_time
} "Scalars for the triggers"
| # Parameter definitions for thorn Nice
# parameter values are parsed into a GH extension at startup so cannot be
# (meaningfully) steered at runtime
CCTK_INT Trigger_Number "Number of triggers" STEERABLE=RECOVER
{
0:10 :: "The number of triggers that are defined"
} 0
STRING Trigger_Checked_Variable[10] "variable to... | # Schedule definitions for thorn Trigger
schedule Trigger_Startup at STARTUP
{
LANG: C
} "Startup Routine"
schedule Trigger_ParamCheck AT PARAMCHECK
{
LANG: C
} "Parameter checking"
schedule Trigger_Check at ANALYSIS before AHFinderDirect_setupupdate
{
LANG: C
# schedule global-early so that eg. o... | make.code.defn | # Main make.code.defn file for thorn Nice
# Source files in this directory
SRCS = trigger.c
| |
CactusUtils/Trigger | https://bitbucket.org/cactuscode/cactusutils.git | # Interface definition for thorn Trigger
inherits: IO
implements: trigger
CCTK_REAL Trigger_Vars DISTRIB=CONSTANT tags='checkpoint="no"'
{
trigger_cctk_iteration
trigger_cctk_time
} "Scalars for the triggers"
| # Parameter definitions for thorn Nice
# parameter values are parsed into a GH extension at startup so cannot be
# (meaningfully) steered at runtime
CCTK_INT Trigger_Number "Number of triggers" STEERABLE=RECOVER
{
0:10 :: "The number of triggers that are defined"
} 0
STRING Trigger_Checked_Variable[10] "variable to... | # Schedule definitions for thorn Trigger
schedule Trigger_Startup at STARTUP
{
LANG: C
} "Startup Routine"
schedule Trigger_ParamCheck AT PARAMCHECK
{
LANG: C
} "Parameter checking"
schedule Trigger_Check at ANALYSIS before AHFinderDirect_setupupdate
{
LANG: C
# schedule global-early so that eg. o... | trigger.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cctk.h"
#include "cctk_WarnLevel.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
/* Trigger GH extension structure */
typedef struct
{
int number;
int *active;
int *checked_variable;
int *output_variables;
int *output_variables_... | |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-8-VSX.h | // -*-C++-*-
// Vectorise using IBM's Altivec VSX (Power)
// Use the type vector double directly, without introducing a wrapper class
// Use macros instead of inline functions
// See <http://pic.dhe.ibm.com/infocenter/comphelp/v111v131/index.jsp>
#include <altivec.h>
#include <math.h>
#define vec8_architecture ... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-8-DoubleHummer.h | // -*-C++-*-
// Vectorise using IBM's Blue Gene/P Double Hummer (Power)
// Use the type double _Complex directly, without introducing a wrapper class
// Use macros instead of inline functions
// See <http://publib.boulder.ibm.com/infocenter/compbgpl/v9v111/index.jsp>
#include <assert.h>
#ifdef __cplusplus
# incl... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-8-AVX.h | // -*-C++-*-
// Vectorise using Intel's or AMD's AVX
// Use the type __m256d directly, without introducing a wrapper class
#include <cstdlib>
#include <cstring>
#include <immintrin.h>
#ifdef __FMA4__
# include <x86intrin.h>
#endif
#ifdef __FMA4__
# define vec8_architecture_FMA4 "+FMA4"
#else
# define vec8_... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-4-default.h | // -*-C++-*-
// Fallback vectorisation implementation: Do not vectorise
// We use macros here, so that we are not surprised by compilers which
// don't like to inline functions. This should also make debug builds
// (which may not inline) more efficient.
#include <assert.h>
#include <math.h>
#define vec4_archite... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-4-SSE.h | // -*-C++-*-
// Vectorise using Intel's or AMD's SSE
// Use the type __m128 directly, without introducing a wrapper class
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstring>
#include <xmmintrin.h>
#ifdef __SSE4_1__
// Intel's SSE 4.1
# include <smmintrin.h>
#endif
#ifdef __SSE4A__
// AMD's... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-8-MIC.h | // -*-C++-*-
// Vectorise using Intel's MIC
// Use the type __m512d directly, without introducing a wrapper class
// See
// <http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/cpp-lin/index.htm#GUID-B8DF6000-6872-47B4-AA64-D47A38AF21BD.htm>
// and
// <http://software.intel.co... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors.h | // -*-C++-*-
#ifndef VECTORS_H
#define VECTORS_H
#include <cctk.h>
#define vec_static_assert(x) namespace { typedef int vsa[(x) ? 1 : -1]; }
#if VECTORISE
# if defined __AVX__ && !defined DISABLE_AVX // Intel AVX
# include "vectors-4-AVX.h"
# elif defined __SSE__ // Intel SSE
# include "vectors... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-8-default.h | // -*-C++-*-
// Fallback vectorisation implementation: Do not vectorise
#include <cassert>
#include <cmath>
#define vec8_architecture "scalar (no vectorisation, 64-bit precision)"
// Use CCTK_REAL8
#define CCTK_REAL8_VEC CCTK_REAL8
// Number of vector elements in a vector
#define CCTK_REAL8_VEC_SIZE 1
vec_stat... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-4-Altivec.h | // -*-C++-*-
// Vectorise using IBM's Altivec (Power)
// Use the type vector double directly, without introducing a wrapper class
// Use macros instead of inline functions
#include <altivec.h>
#define vec4_architecture "Altivec"
// Vector type corresponding to CCTK_REAL
#define CCTK_REAL4_VEC vector float
// N... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| make.code.defn | # Main make.code.defn file for thorn Vectors
# Source files in this directory
SRCS = vectors.cc test.cc
# Subdirectories containing source files
SUBDIRS =
|
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| test.cc | #include "vectors.h"
#include <cctk.h>
#include <cctk_Arguments.h>
#include <cctk_Parameters.h>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <limits>
using namespace std;
inline CCTK_REAL my_sgn(CCTK_REAL const x) {
return x == (CCTK_REAL)0.0 ? (CCTK_REAL)0.0 : copysign((CCTK_... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-8-QPX.h | // -*-C++-*-
// Vectorise using IBM's Blue Gene/Q QPX (Power)
#ifndef __clang__
// Use the type vector4double directly, without introducing a wrapper class
// Use macros instead of inline functions
// Note: bgxlC_r does not like const declarations, so we need to cast
// them away and/or omit them everywhere
// See ... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-4-AVX.h | // -*-C++-*-
// Vectorise using Intel's or AMD's AVX
// Use the type __m256 directly, without introducing a wrapper class
#include <cstdlib>
#include <cstring>
#include <immintrin.h>
#ifdef __FMA4__
# include <x86intrin.h>
#endif
#ifdef __FMA4__
# define vec4_architecture_FMA4 "+FMA4"
#else
# define vec4_a... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors.cc | #include "vectors.h"
#include <cctk.h>
#include <cctk_Arguments.h>
#include <cctk_Parameters.h>
extern "C"
int Vectors_Startup(void)
{
CCTK_VInfo(CCTK_THORNSTRING,
"Using vector size %d for architecture %s",
CCTK_REAL_VEC_SIZE, vec_architecture);
return 0;
}
|
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| vectors-8-SSE2.h | // -*-C++-*-
// Vectorise using Intel's or AMD's SSE2
// Use the type __m128d directly, without introducing a wrapper class
#include <cassert>
#include <cmath>
#include <emmintrin.h>
#ifdef __SSE4_1__
// Intel's SSE 4.1
# include <smmintrin.h>
#endif
#ifdef __SSE4A__
// AMD's SSE 4a
# include <ammintrin.h>
// I... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| macros/vectors-8-AVX.h | // Vectorise using Intel's or AMD's AVX
// Use the type __m256d directly, without introducing a wrapper class
// Use macros instead of inline functions
#if VECTORISE_EMULATE_AVX
# include "avxintrin_emu.h"
#else
# include <immintrin.h>
#endif
#ifdef __FMA4__
# include <fma4intrin.h>
#endif
#ifdef __FMA4__
# ... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| macros/vectors-4-default.h | // Fallback vectorisation implementation: Do not vectorise
// We use macros here, so that we are not surprised by compilers which
// don't like to inline functions. This should also make debug builds
// (which may not inline) more efficient.
#include <assert.h>
#include <math.h>
#define vec4_architecture "scalar... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| macros/vectors-4-SSE.h | // Vectorise using Intel's or AMD's SSE
// Use the type __m128 directly, without introducing a wrapper class
// Use macros instead of inline functions
#include <assert.h>
#include <math.h>
#include <xmmintrin.h>
#ifdef __SSE4_1__
// Intel's SSE 4.1
# include <smmintrin.h>
#endif
#ifdef __SSE4A__
// AMD's SSE 4a
#... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| macros/vectors-8-default.h | // Fallback vectorisation implementation: Do not vectorise
// We use macros here, so that we are not surprised by compilers which
// don't like to inline functions. This should also make debug builds
// (which may not inline) more efficient.
#include <assert.h>
#include <math.h>
#define vec8_architecture "scalar... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| macros/vectors-8-SSE2.h | // Vectorise using Intel's or AMD's SSE2
// Use the type __m128d directly, without introducing a wrapper class
// Use macros instead of inline functions
#include <assert.h>
#include <math.h>
#include <emmintrin.h>
#ifdef __SSE4_1__
// Intel's SSE 4.1
# include <smmintrin.h>
#endif
#ifdef __SSE4A__
// AMD's SSE 4a... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| indirect/vectors-intel.hh | #include <cmath>
#include <cstdlib>
using namespace std;
#if defined(__SSE__) // SSE (Intel)
#include <xmmintrin.h>
template<>
struct vec_T<float> {
typedef float scalar_t;
typedef __m128 impl_t;
impl_t v;
static inline size_t size()
{
return sizeof(impl_t)/sizeof(scalar_t);
}
in... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| indirect/vectors-default.hh | using namespace std;
// A class template that provides a vectorised type for the underlying
// scalar type T. This implementation does "nothing", i.e. just
// provides a "vector" class with a vector size of 1, forwarding all
// operations to the scalar type.
//
// This implementation uses small integers in several p... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| indirect/vectors-power.hh | #include <cmath>
#include <cstdlib>
using namespace std;
#if defined(__ALTIVEC__) // Altivec (Power)
#include <altivec.h>
template<>
struct vec_t<float> {
typedef float scalar_t;
typedef vector float impl_t;
static inline size_t size()
{
return sizeof(impl_t)/sizeof(scalar_t);
}
inline... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| indirect/vectors-pseudo.hh | #include <cmath>
#include <cstdlib>
using namespace std;
template<typename T>
struct vec_t {
size_t const D = 2;
typedef T scalar_t;
typedef T impl_t;
impl_t v[D];
static inline size_t size()
{
return D;
}
inline vec_t ()
{
}
inline vec_t (scalar_t const& a)
{
for (size_t d=0; d<D... |
CactusUtils/Vectors | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn Vectors
PROVIDES Vectors
{
SCRIPT configure.sh
LANG bash
OPTIONS \
VECTORISE \
VECTORISE_ALIGNED_ARRAYS \
VECTORISE_ALWAYS_USE_UNALIGNED_LOADS \
VECTORISE_ALWAYS_USE_ALIGNED_LOADS \
V... | # Interface definition for thorn Vectors
IMPLEMENTS: Vectors
INCLUDE HEADER: vectors.h IN vectors.h
| # Parameter definitions for thorn Vectors
BOOLEAN verbose "Verbose output during vector tests"
{
} "no"
| # Schedule definitions for thorn Vectors
schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
schedule Vectors_Test at CCTK_PARAMCHECK
{
LANG: C
} "Run correctness tests."
| indirect/vectors.hh | #ifndef VECTORS_HH
#define VECTORS_HH
#include <cassert>
#include <cmath>
#include <cstdlib>
// Default vector implementation, does not vectorise
#include "vectors-default.hh"
#if 0
// Intel SSE vector instructions
#include "vectors-intel.hh"
// Power (Altivec) vector instructions
#include "vectors-power.... |
CactusUtils/WatchDog | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn WatchDog
REQUIRES PTHREADS
| # Interface definition for thorn WatchDog
IMPLEMENTS: WatchDog
| # Parameter definitions for thorn WatchDog
PRIVATE:
CCTK_INT check_every "Check that the run is progressing every so many seconds" STEERABLE=RECOVER
{
1:* :: "Any positive integer"
} 3600
| # Schedule definitions for thorn WatchDog
SCHEDULE WatchDog AT CCTK_ANALYSIS
{
LANG: C
} "Make sure that the run is progressing"
| watchdog.c | #include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
#include <pthread.h>
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
static time_t timestamp;
static struct {
... |
CactusUtils/WatchDog | https://bitbucket.org/cactuscode/cactusutils.git | # Configuration definitions for thorn WatchDog
REQUIRES PTHREADS
| # Interface definition for thorn WatchDog
IMPLEMENTS: WatchDog
| # Parameter definitions for thorn WatchDog
PRIVATE:
CCTK_INT check_every "Check that the run is progressing every so many seconds" STEERABLE=RECOVER
{
1:* :: "Any positive integer"
} 3600
| # Schedule definitions for thorn WatchDog
SCHEDULE WatchDog AT CCTK_ANALYSIS
{
LANG: C
} "Make sure that the run is progressing"
| make.code.defn | # Main make.code.defn file for thorn WatchDog
# Source files in this directory
SRCS = watchdog.c
# Subdirectories containing source files
SUBDIRS =
|
CactusWave/IDScalarWave | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWave
# $Header$
implements: idscalarwave
inherits: wavetoy grid
| # Parameter definitions for thorn IDScalarWave
# $Header$
shares: grid
USES KEYWORD type
restricted:
KEYWORD initial_data "Type of initial data"
{
"plane" :: "Plane wave"
"gaussian" :: "Gaussian wave"
"box" :: "Box wave"
"none" :: "No initial data, zero phi"
} "gaussian"
private:
## P... | # Schedule definitions for thorn IDScalarWave
# $Header$
schedule IDScalarWave_CheckParameters at CCTK_PARAMCHECK
{
LANG: Fortran
} "Check parameters"
schedule group WaveToy_InitialData at CCTK_INITIAL
{
} "Execute initial data for wavetoy"
schedule IDScalarWave_InitialData in WaveToy_InitialData
{
STORAGE: ... | InitialData.F77 | /*@@
@file InitialData.F77
@date
@author Tom Goodale
@desc
Initial data for the 3D Wave Equation
@enddesc
@@*/
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Functions.h"
#include "cctk_Parameters.h"
/*@@
@routine IDScalarWave_InitialData
@date ... | |
CactusWave/IDScalarWave | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWave
# $Header$
implements: idscalarwave
inherits: wavetoy grid
| # Parameter definitions for thorn IDScalarWave
# $Header$
shares: grid
USES KEYWORD type
restricted:
KEYWORD initial_data "Type of initial data"
{
"plane" :: "Plane wave"
"gaussian" :: "Gaussian wave"
"box" :: "Box wave"
"none" :: "No initial data, zero phi"
} "gaussian"
private:
## P... | # Schedule definitions for thorn IDScalarWave
# $Header$
schedule IDScalarWave_CheckParameters at CCTK_PARAMCHECK
{
LANG: Fortran
} "Check parameters"
schedule group WaveToy_InitialData at CCTK_INITIAL
{
} "Execute initial data for wavetoy"
schedule IDScalarWave_InitialData in WaveToy_InitialData
{
STORAGE: ... | CheckParameters.F77 | /*@@
@file CheckParameters.F77
@date
@author Gabrielle Allen
@desc
Check parameters for the wave equation initial data
@enddesc
@@*/
#include "cctk.h"
#include "cctk_Parameters.h"
#include "cctk_Arguments.h"
/*@@
@routine IDScalarWave_CheckParameters
@date ... | |
CactusWave/IDScalarWave | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWave
# $Header$
implements: idscalarwave
inherits: wavetoy grid
| # Parameter definitions for thorn IDScalarWave
# $Header$
shares: grid
USES KEYWORD type
restricted:
KEYWORD initial_data "Type of initial data"
{
"plane" :: "Plane wave"
"gaussian" :: "Gaussian wave"
"box" :: "Box wave"
"none" :: "No initial data, zero phi"
} "gaussian"
private:
## P... | # Schedule definitions for thorn IDScalarWave
# $Header$
schedule IDScalarWave_CheckParameters at CCTK_PARAMCHECK
{
LANG: Fortran
} "Check parameters"
schedule group WaveToy_InitialData at CCTK_INITIAL
{
} "Execute initial data for wavetoy"
schedule IDScalarWave_InitialData in WaveToy_InitialData
{
STORAGE: ... | make.code.defn | # Main make.code.defn file for thorn IDScalarWave
# $Header$
# Source files in this directory
SRCS = InitialData.F77 CheckParameters.F77
# Subdirectories containing source files
SUBDIRS =
| |
CactusWave/IDScalarWaveC | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWave
# $Header$
implements: idscalarwave
inherits: wavetoy grid
| # Parameter definitions for thorn IDScalarWave
# $Header$
shares: grid
USES KEYWORD type
restricted:
KEYWORD initial_data "Type of initial data"
{
"plane" :: "Plane wave"
"gaussian" :: "Gaussian wave"
"box" :: "Box wave"
"none" :: "No initial data, zero phi"
} "gaussian"
private:
## P... | # Schedule definitions for thorn IDScalarWaveC
# $Header$
schedule IDScalarWaveC_CheckParameters at CCTK_PARAMCHECK
{
LANG: C
} "Check parameters"
schedule IDScalarWaveC_InitialData at CCTK_INITIAL as WaveToy_InitialData
{
STORAGE: wavetoy::scalarevolve[3]
LANG: C
} "Initial data for 3D wave equa... | make.code.defn | # Main make.code.defn file for thorn IDScalarWave
# $Header$
# Source files in this directory
SRCS = InitialData.c CheckParameters.c
# Subdirectories containing source files
SUBDIRS =
| |
CactusWave/IDScalarWaveC | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWave
# $Header$
implements: idscalarwave
inherits: wavetoy grid
| # Parameter definitions for thorn IDScalarWave
# $Header$
shares: grid
USES KEYWORD type
restricted:
KEYWORD initial_data "Type of initial data"
{
"plane" :: "Plane wave"
"gaussian" :: "Gaussian wave"
"box" :: "Box wave"
"none" :: "No initial data, zero phi"
} "gaussian"
private:
## P... | # Schedule definitions for thorn IDScalarWaveC
# $Header$
schedule IDScalarWaveC_CheckParameters at CCTK_PARAMCHECK
{
LANG: C
} "Check parameters"
schedule IDScalarWaveC_InitialData at CCTK_INITIAL as WaveToy_InitialData
{
STORAGE: wavetoy::scalarevolve[3]
LANG: C
} "Initial data for 3D wave equa... | InitialData.c | /*@@
@file InitialData.c
@date
@author Werner Benger
@desc
Initial data for the 3D Wave Equation
Derived from Tom Goodale
@enddesc
@version $Id$
@@*/
#include <math.h>
#include "cctk.h"
#include "cctk_Parameters.h"
#include "cctk_Arguments.h"
static const char *rcsid =... | |
CactusWave/IDScalarWaveC | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWave
# $Header$
implements: idscalarwave
inherits: wavetoy grid
| # Parameter definitions for thorn IDScalarWave
# $Header$
shares: grid
USES KEYWORD type
restricted:
KEYWORD initial_data "Type of initial data"
{
"plane" :: "Plane wave"
"gaussian" :: "Gaussian wave"
"box" :: "Box wave"
"none" :: "No initial data, zero phi"
} "gaussian"
private:
## P... | # Schedule definitions for thorn IDScalarWaveC
# $Header$
schedule IDScalarWaveC_CheckParameters at CCTK_PARAMCHECK
{
LANG: C
} "Check parameters"
schedule IDScalarWaveC_InitialData at CCTK_INITIAL as WaveToy_InitialData
{
STORAGE: wavetoy::scalarevolve[3]
LANG: C
} "Initial data for 3D wave equa... | CheckParameters.c | /*
@file CheckParameters.c
@date
@author Gabrielle Allen
@desc
Check parameters for the wave equation initial data
@enddesc
@version $Header$
@@*/
#include "cctk.h"
#include "cctk_Parameters.h"
#include "cctk_Arguments.h"
static const char *rcsid = "$Header$";
CCTK_F... | |
CactusWave/IDScalarWaveCXX | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWave
# $Header$
implements: idscalarwave
inherits: wavetoy grid
| # Parameter definitions for thorn IDScalarWave
# $Header$
shares: grid
USES KEYWORD type
restricted:
KEYWORD initial_data "Type of initial data"
{
"plane" :: "Plane wave"
"gaussian" :: "Gaussian wave"
"box" :: "Box wave"
"none" :: "No initial data, zero phi"
} "gaussian"
private:
## P... | # Schedule definitions for thorn IDScalarWave
# $Header$
schedule IDScalarWaveCXX_CheckParameters at CCTK_PARAMCHECK
{
LANG: C
} "Check parameters"
schedule IDScalarWaveCXX_InitialData at CCTK_INITIAL as WaveToy_InitialData
{
STORAGE: wavetoy::scalarevolve[3]
LANG: C
} "Initial data for 3D wave e... | CheckParameters.cc | /*
@file CheckParameters.F77
@date
@author Gabrielle Allen
@desc
Check parameters for the wave equation initial data
@enddesc
@@*/
#include "cctk.h"
#include "cctk_Parameters.h"
#include "cctk_Arguments.h"
/*@@
@routine IDScalarWave_CheckParameters
@date ... | |
CactusWave/IDScalarWaveCXX | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWave
# $Header$
implements: idscalarwave
inherits: wavetoy grid
| # Parameter definitions for thorn IDScalarWave
# $Header$
shares: grid
USES KEYWORD type
restricted:
KEYWORD initial_data "Type of initial data"
{
"plane" :: "Plane wave"
"gaussian" :: "Gaussian wave"
"box" :: "Box wave"
"none" :: "No initial data, zero phi"
} "gaussian"
private:
## P... | # Schedule definitions for thorn IDScalarWave
# $Header$
schedule IDScalarWaveCXX_CheckParameters at CCTK_PARAMCHECK
{
LANG: C
} "Check parameters"
schedule IDScalarWaveCXX_InitialData at CCTK_INITIAL as WaveToy_InitialData
{
STORAGE: wavetoy::scalarevolve[3]
LANG: C
} "Initial data for 3D wave e... | InitialData.cc | /*@@
@file InitialData.cc
@date
@author Werner Benger
@desc
Initial data for the 3D Wave Equation
Derived from Tom Goodale
@enddesc
@version $Id$
@@*/
#include <math.h>
#include "cctk.h"
#include "cctk_Parameters.h"
#include "cctk_Arguments.h"
inline CCTK_REAL squ... | |
CactusWave/IDScalarWaveCXX | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWave
# $Header$
implements: idscalarwave
inherits: wavetoy grid
| # Parameter definitions for thorn IDScalarWave
# $Header$
shares: grid
USES KEYWORD type
restricted:
KEYWORD initial_data "Type of initial data"
{
"plane" :: "Plane wave"
"gaussian" :: "Gaussian wave"
"box" :: "Box wave"
"none" :: "No initial data, zero phi"
} "gaussian"
private:
## P... | # Schedule definitions for thorn IDScalarWave
# $Header$
schedule IDScalarWaveCXX_CheckParameters at CCTK_PARAMCHECK
{
LANG: C
} "Check parameters"
schedule IDScalarWaveCXX_InitialData at CCTK_INITIAL as WaveToy_InitialData
{
STORAGE: wavetoy::scalarevolve[3]
LANG: C
} "Initial data for 3D wave e... | make.code.defn | # Main make.code.defn file for thorn IDScalarWave
# $Header$
# Source files in this directory
SRCS = InitialData.cc CheckParameters.cc
# Subdirectories containing source files
SUBDIRS =
| |
CactusWave/IDScalarWaveElliptic | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWaveElliptic
# $Header$
implements: IDScalarWaveElliptic
inherits: Grid WaveToy EllBase IDScalarWave
USES INCLUDE HEADER: EllBase.h
private:
cctk_real ellcoeffs type = GF
{
Mcoeff,Ncoeff
} "Coefficients of the elliptic equation"
cctk_real outvars type = GF
{
temp
} "Temp... | # Parameter definitions for thorn IDScalarWaveElliptic
# $Header$
shares: idscalarwave
EXTENDS KEYWORD initial_data
{
"charge" :: "Uniformly charged sphere"
}
private:
REAL radius "Radius of uniformly charged sphere"
{
0:* :: "Anything"
} 1.0
REAL charge "Charge of uniformly charged sphere"
{
0:* :: "An... | # Schedule definitions for thorn IDScalarWaveElliptic
# $Header$
schedule UniformCharge in WaveToy_InitialData
{
STORAGE: wavetoy::scalarevolve[3],ellcoeffs,outvars
LANG: Fortran
} "Initial data (Uniform Charge) for 3D wave equation"
| make.code.defn | # Main make.code.defn file for thorn IDScalarWaveElliptic
# $Header$
# Source files in this directory
SRCS = SourceData.F90
# Subdirectories containing source files
SUBDIRS =
| |
CactusWave/IDScalarWaveElliptic | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDScalarWaveElliptic
# $Header$
implements: IDScalarWaveElliptic
inherits: Grid WaveToy EllBase IDScalarWave
USES INCLUDE HEADER: EllBase.h
private:
cctk_real ellcoeffs type = GF
{
Mcoeff,Ncoeff
} "Coefficients of the elliptic equation"
cctk_real outvars type = GF
{
temp
} "Temp... | # Parameter definitions for thorn IDScalarWaveElliptic
# $Header$
shares: idscalarwave
EXTENDS KEYWORD initial_data
{
"charge" :: "Uniformly charged sphere"
}
private:
REAL radius "Radius of uniformly charged sphere"
{
0:* :: "Anything"
} 1.0
REAL charge "Charge of uniformly charged sphere"
{
0:* :: "An... | # Schedule definitions for thorn IDScalarWaveElliptic
# $Header$
schedule UniformCharge in WaveToy_InitialData
{
STORAGE: wavetoy::scalarevolve[3],ellcoeffs,outvars
LANG: Fortran
} "Initial data (Uniform Charge) for 3D wave equation"
| SourceData.F90 | /*@@
@file SourceData.F90
@date
@author Gabrielle Allen
@desc
Elliptic initial data for wave equation
Originally written in F77 fixed format. Converted to F90
free format by Peter Diener.
@enddesc
@version $Header$
@@*/
#include "cctk.h"
#i... | |
CactusWave/WaveBinarySource | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDBinarySourceC
# $Header$
implements: binarysource
inherits: wavetoy grid
| # Parameter definitions for thorn IDBinarySourceC
# $Header$
private:
KEYWORD binary_verbose "Rotating binary source verbose"
{
"yes" :: "Info on charge location/extension on first iteration"
"debug":: "Info on charge location/extension on all iterations"
"no" :: "no output"
} "no"
REAL binary_size "Radial ... | # Schedule definitions for thorn IDBinarySourceC
# $Header$
schedule WaveBinaryC at EVOL after WaveToy_Evolution
{
STORAGE: wavetoy::scalarevolve[1]
LANG: C
} "Provide binary source during evolution (C)"
| make.code.defn | # Main make.code.defn file for thorn IDBinarySourceC
# $Header$
# Source files in this directory
SRCS = WaveBinary.c
# Subdirectories containing source files
SUBDIRS =
| |
CactusWave/WaveBinarySource | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDBinarySourceC
# $Header$
implements: binarysource
inherits: wavetoy grid
| # Parameter definitions for thorn IDBinarySourceC
# $Header$
private:
KEYWORD binary_verbose "Rotating binary source verbose"
{
"yes" :: "Info on charge location/extension on first iteration"
"debug":: "Info on charge location/extension on all iterations"
"no" :: "no output"
} "no"
REAL binary_size "Radial ... | # Schedule definitions for thorn IDBinarySourceC
# $Header$
schedule WaveBinaryC at EVOL after WaveToy_Evolution
{
STORAGE: wavetoy::scalarevolve[1]
LANG: C
} "Provide binary source during evolution (C)"
| CoordinateStuff.c | ||
CactusWave/WaveBinarySource | https://bitbucket.org/cactuscode/cactuswave.git | # Interface definition for thorn IDBinarySourceC
# $Header$
implements: binarysource
inherits: wavetoy grid
| # Parameter definitions for thorn IDBinarySourceC
# $Header$
private:
KEYWORD binary_verbose "Rotating binary source verbose"
{
"yes" :: "Info on charge location/extension on first iteration"
"debug":: "Info on charge location/extension on all iterations"
"no" :: "no output"
} "no"
REAL binary_size "Radial ... | # Schedule definitions for thorn IDBinarySourceC
# $Header$
schedule WaveBinaryC at EVOL after WaveToy_Evolution
{
STORAGE: wavetoy::scalarevolve[1]
LANG: C
} "Provide binary source during evolution (C)"
| WaveBinary.c | /*@@
@file WaveBinary.c
@date
@author Cactus Maintainers
@desc
Add a binary source term to the 3D scalar wave equation
@enddesc
@version $Header$
@@*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "cctk.h"
#include "cctk_Parameters.h"
#include "cctk_Argument... | |
CactusWave/WaveToyC | https://bitbucket.org/cactuscode/cactuswave.git | # Configuration definition for thorn CactusWave/WaveToyC
# $Header$
REQUIRES CartGrid3D
| # Interface definition for thorn WaveToyC
# $Header$
implements: wavetoy
inherits: grid
USES INCLUDE: Symmetry.h
public:
cctk_real scalarevolve type = GF Timelevels=3 tags='tensortypealias="Scalar"'
{
phi
} "The evolved scalar field"
CCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \
CC... | # Parameter definitions for thorn WaveToyC
# $Header$
restricted:
KEYWORD bound "Type of boundary condition to use"
{
"none" :: "Apply no boundary condition"
"flat" :: "Flat (von Neumann, n grad phi = 0) boundary condition"
"static" :: "Static (Dirichlet, dphi/dt=0) boundary condition"
"radiatio... | # Schedule definitions for thorn WaveToyC
# $Header$
STORAGE: scalarevolve[3]
schedule WaveToyC_Startup at STARTUP
{
LANG: C
} "Register banner"
schedule WaveToyC_InitSymBound at BASEGRID
{
LANG: C
OPTIONS: global
} "Schedule symmetries"
schedule WaveToyC_Evolution as WaveToy_Evolution at EVOL
{
LANG: C
S... | WaveToy.c | /*@@
@file WaveToy.c
@date
@author Tom Goodale
@desc
Evolution routines for the wave equation solver
@enddesc
@version $Id$
@@*/
#include <stddef.h>
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
static const char *rcsid = "$Header$";
CCTK_FILEVERSION... |
CactusWave/WaveToyC | https://bitbucket.org/cactuscode/cactuswave.git | # Configuration definition for thorn CactusWave/WaveToyC
# $Header$
REQUIRES CartGrid3D
| # Interface definition for thorn WaveToyC
# $Header$
implements: wavetoy
inherits: grid
USES INCLUDE: Symmetry.h
public:
cctk_real scalarevolve type = GF Timelevels=3 tags='tensortypealias="Scalar"'
{
phi
} "The evolved scalar field"
CCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \
CC... | # Parameter definitions for thorn WaveToyC
# $Header$
restricted:
KEYWORD bound "Type of boundary condition to use"
{
"none" :: "Apply no boundary condition"
"flat" :: "Flat (von Neumann, n grad phi = 0) boundary condition"
"static" :: "Static (Dirichlet, dphi/dt=0) boundary condition"
"radiatio... | # Schedule definitions for thorn WaveToyC
# $Header$
STORAGE: scalarevolve[3]
schedule WaveToyC_Startup at STARTUP
{
LANG: C
} "Register banner"
schedule WaveToyC_InitSymBound at BASEGRID
{
LANG: C
OPTIONS: global
} "Schedule symmetries"
schedule WaveToyC_Evolution as WaveToy_Evolution at EVOL
{
LANG: C
S... | make.code.defn | # Main make.code.defn file for thorn WaveToyC
# $Header$
# Source files in this directory
SRCS = WaveToy.c InitSymBound.c Startup.c
# Subdirectories containing source files
SUBDIRS =
|
CactusWave/WaveToyC | https://bitbucket.org/cactuscode/cactuswave.git | # Configuration definition for thorn CactusWave/WaveToyC
# $Header$
REQUIRES CartGrid3D
| # Interface definition for thorn WaveToyC
# $Header$
implements: wavetoy
inherits: grid
USES INCLUDE: Symmetry.h
public:
cctk_real scalarevolve type = GF Timelevels=3 tags='tensortypealias="Scalar"'
{
phi
} "The evolved scalar field"
CCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \
CC... | # Parameter definitions for thorn WaveToyC
# $Header$
restricted:
KEYWORD bound "Type of boundary condition to use"
{
"none" :: "Apply no boundary condition"
"flat" :: "Flat (von Neumann, n grad phi = 0) boundary condition"
"static" :: "Static (Dirichlet, dphi/dt=0) boundary condition"
"radiatio... | # Schedule definitions for thorn WaveToyC
# $Header$
STORAGE: scalarevolve[3]
schedule WaveToyC_Startup at STARTUP
{
LANG: C
} "Register banner"
schedule WaveToyC_InitSymBound at BASEGRID
{
LANG: C
OPTIONS: global
} "Schedule symmetries"
schedule WaveToyC_Evolution as WaveToy_Evolution at EVOL
{
LANG: C
S... | InitSymBound.c | /*@@
@file InitSymBound.c
@date
@author Gabrielle Allen
@desc
Sets the symmetries for Wave Toy
@enddesc
@version $Header$
@@*/
#include "cctk.h"
#include "cctk_Arguments.h"
#include "Symmetry.h"
static const char *rcsid = "$Header$";
CCTK_FILEVERSION(CactusWave_WaveToyC_Init... |
CactusWave/WaveToyC | https://bitbucket.org/cactuscode/cactuswave.git | # Configuration definition for thorn CactusWave/WaveToyC
# $Header$
REQUIRES CartGrid3D
| # Interface definition for thorn WaveToyC
# $Header$
implements: wavetoy
inherits: grid
USES INCLUDE: Symmetry.h
public:
cctk_real scalarevolve type = GF Timelevels=3 tags='tensortypealias="Scalar"'
{
phi
} "The evolved scalar field"
CCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \
CC... | # Parameter definitions for thorn WaveToyC
# $Header$
restricted:
KEYWORD bound "Type of boundary condition to use"
{
"none" :: "Apply no boundary condition"
"flat" :: "Flat (von Neumann, n grad phi = 0) boundary condition"
"static" :: "Static (Dirichlet, dphi/dt=0) boundary condition"
"radiatio... | # Schedule definitions for thorn WaveToyC
# $Header$
STORAGE: scalarevolve[3]
schedule WaveToyC_Startup at STARTUP
{
LANG: C
} "Register banner"
schedule WaveToyC_InitSymBound at BASEGRID
{
LANG: C
OPTIONS: global
} "Schedule symmetries"
schedule WaveToyC_Evolution as WaveToy_Evolution at EVOL
{
LANG: C
S... | Startup.c | /*@@
@file Startup.c
@date
@author Gabrielle Allen
@desc
Register banner
@enddesc
@version $Header$
@@*/
#include "cctk.h"
static const char *rcsid = "$Header$";
CCTK_FILEVERSION(CactusWave_WaveToyC_Startup_c)
int WaveToyC_Startup(void);
/*@@
@routine WaveT... |
CactusWave/WaveToyCXX | https://bitbucket.org/cactuscode/cactuswave.git | # Configuration definition for thorn CactusWave/WaveToyCXX
# $Header$
REQUIRES CartGrid3D
| # Interface definition for thorn WaveToyCXX
# $Header$
implements: wavetoy
inherits: grid
USES INCLUDE: Symmetry.h
public:
cctk_real scalarevolve type = GF Timelevels=3
{
phi
} "The evolved scalar field"
CCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \
CCTK_INT IN faces, CCTK_INT IN bo... | # Parameter definitions for thorn WaveToyCXX
# $Header$
restricted:
KEYWORD bound "Type of boundary condition to use"
{
"none" :: "Apply no boundary condition"
"flat" :: "Flat (von Neumann, n grad phi = 0) boundary condition"
"static" :: "Static (Dirichlet, dphi/dt=0) boundary condition"
"radiat... | # Schedule definitions for thorn WaveToyCXX
# $Header$
STORAGE: scalarevolve[3]
schedule WaveToyCXX_Startup at STARTUP
{
LANG: C
} "Register banner"
schedule WaveToyCXX_InitSymBound at BASEGRID
{
LANG: C
} "Schedule symmetries"
schedule WaveToyCXX_Evolution as WaveToy_Evolution at EVOL
{
LANG: C
SYNC: scala... | WaveToy.cc | /*@@
@file WaveToy.cc
@date
@author Tom Goodale
@desc
Evolution routines for the wave equation solver
@enddesc
@version $Id$
@@*/
#include <stddef.h>
#include "cctk.h"
#include "cctk_Parameters.h"
#include "cctk_Arguments.h"
#define val(gridfunc,i,j,k) gridfunc[CCTK_GFINDEX3D(cct... |
CactusWave/WaveToyCXX | https://bitbucket.org/cactuscode/cactuswave.git | # Configuration definition for thorn CactusWave/WaveToyCXX
# $Header$
REQUIRES CartGrid3D
| # Interface definition for thorn WaveToyCXX
# $Header$
implements: wavetoy
inherits: grid
USES INCLUDE: Symmetry.h
public:
cctk_real scalarevolve type = GF Timelevels=3
{
phi
} "The evolved scalar field"
CCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \
CCTK_INT IN faces, CCTK_INT IN bo... | # Parameter definitions for thorn WaveToyCXX
# $Header$
restricted:
KEYWORD bound "Type of boundary condition to use"
{
"none" :: "Apply no boundary condition"
"flat" :: "Flat (von Neumann, n grad phi = 0) boundary condition"
"static" :: "Static (Dirichlet, dphi/dt=0) boundary condition"
"radiat... | # Schedule definitions for thorn WaveToyCXX
# $Header$
STORAGE: scalarevolve[3]
schedule WaveToyCXX_Startup at STARTUP
{
LANG: C
} "Register banner"
schedule WaveToyCXX_InitSymBound at BASEGRID
{
LANG: C
} "Schedule symmetries"
schedule WaveToyCXX_Evolution as WaveToy_Evolution at EVOL
{
LANG: C
SYNC: scala... | InitSymBound.cc | /*@@
@file InitSymBound.c
@date
@author Gabrielle Allen
@desc
Sets the symmetries for Wave Toy
@enddesc
@version $Header$
@@*/
#include "cctk.h"
#include "cctk_Arguments.h"
#include "Symmetry.h"
/*@@
@routine WaveToyC_InitSymBound
@date
@author Gabrielle ... |
CactusWave/WaveToyCXX | https://bitbucket.org/cactuscode/cactuswave.git | # Configuration definition for thorn CactusWave/WaveToyCXX
# $Header$
REQUIRES CartGrid3D
| # Interface definition for thorn WaveToyCXX
# $Header$
implements: wavetoy
inherits: grid
USES INCLUDE: Symmetry.h
public:
cctk_real scalarevolve type = GF Timelevels=3
{
phi
} "The evolved scalar field"
CCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \
CCTK_INT IN faces, CCTK_INT IN bo... | # Parameter definitions for thorn WaveToyCXX
# $Header$
restricted:
KEYWORD bound "Type of boundary condition to use"
{
"none" :: "Apply no boundary condition"
"flat" :: "Flat (von Neumann, n grad phi = 0) boundary condition"
"static" :: "Static (Dirichlet, dphi/dt=0) boundary condition"
"radiat... | # Schedule definitions for thorn WaveToyCXX
# $Header$
STORAGE: scalarevolve[3]
schedule WaveToyCXX_Startup at STARTUP
{
LANG: C
} "Register banner"
schedule WaveToyCXX_InitSymBound at BASEGRID
{
LANG: C
} "Schedule symmetries"
schedule WaveToyCXX_Evolution as WaveToy_Evolution at EVOL
{
LANG: C
SYNC: scala... | make.code.defn | # Main make.code.defn file for thorn WaveToyC
# $Header$
# Source files in this directory
SRCS = WaveToy.cc InitSymBound.cc Startup.cc
# Subdirectories containing source files
SUBDIRS =
|
CactusWave/WaveToyCXX | https://bitbucket.org/cactuscode/cactuswave.git | # Configuration definition for thorn CactusWave/WaveToyCXX
# $Header$
REQUIRES CartGrid3D
| # Interface definition for thorn WaveToyCXX
# $Header$
implements: wavetoy
inherits: grid
USES INCLUDE: Symmetry.h
public:
cctk_real scalarevolve type = GF Timelevels=3
{
phi
} "The evolved scalar field"
CCTK_INT FUNCTION Boundary_SelectVarForBC(CCTK_POINTER_TO_CONST IN GH, \
CCTK_INT IN faces, CCTK_INT IN bo... | # Parameter definitions for thorn WaveToyCXX
# $Header$
restricted:
KEYWORD bound "Type of boundary condition to use"
{
"none" :: "Apply no boundary condition"
"flat" :: "Flat (von Neumann, n grad phi = 0) boundary condition"
"static" :: "Static (Dirichlet, dphi/dt=0) boundary condition"
"radiat... | # Schedule definitions for thorn WaveToyCXX
# $Header$
STORAGE: scalarevolve[3]
schedule WaveToyCXX_Startup at STARTUP
{
LANG: C
} "Register banner"
schedule WaveToyCXX_InitSymBound at BASEGRID
{
LANG: C
} "Schedule symmetries"
schedule WaveToyCXX_Evolution as WaveToy_Evolution at EVOL
{
LANG: C
SYNC: scala... | Startup.cc | /*@@
@file Startup.c
@date
@author Gabrielle Allen
@desc
Register banner
@enddesc
@version $Header$
@@*/
#include "cctk.h"
/*@@
@routine WaveToyCXX_Startup
@date
@author Gabrielle Allen
@desc
@enddesc
@calls
@calledby ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.