Peano
Loading...
Searching...
No Matches
peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool Class Reference

Full qualified filename of jar file. More...

Inheritance diagram for peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool:
Collaboration diagram for peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool:

Public Member Functions

 __init__ (self, data)
 get_stack_container (self)
 get_header_file_include (self)
 construct_output (self, output)
 Pass in a version of output.

Data Fields

 data = data

Static Public Attributes

str DaStGenJarFile = "~/git/DaStGen/DaStGen.jar"

Private Member Functions

 __get_file_name (self)
 __get_full_qualified_file_name (self)
 __generate_dastgen_input_file (self)

Static Private Attributes

str __DaStGenArguments = "--plugin PeanoSnippetGenerator --naming Peano4NameTranslator "
str __Template_Prologue
str __Template_DebugFlags

Detailed Description

Full qualified filename of jar file.

Definition at line 8 of file DaStGenToLegacyTool.py.

Constructor & Destructor Documentation

◆ __init__()

peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.__init__ ( self,
data )

Definition at line 21 of file DaStGenToLegacyTool.py.

Member Function Documentation

◆ __generate_dastgen_input_file()

peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.__generate_dastgen_input_file ( self)
private

Definition at line 60 of file DaStGenToLegacyTool.py.

References __get_full_qualified_file_name(), __Template_DebugFlags, __Template_Prologue, convert::data::PatchData.data, peano4.api.datamodel.DaStGen2.DaStGen2.data, and data.

Referenced by construct_output().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ __get_file_name()

peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.__get_file_name ( self)
private

Definition at line 43 of file DaStGenToLegacyTool.py.

References convert::data::PatchData.data, peano4.api.datamodel.DaStGen2.DaStGen2.data, and data.

Referenced by __get_full_qualified_file_name(), and construct_output().

Here is the caller graph for this function:

◆ __get_full_qualified_file_name()

peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.__get_full_qualified_file_name ( self)
private

Definition at line 46 of file DaStGenToLegacyTool.py.

References __get_file_name(), convert::data::PatchData.data, peano4.api.datamodel.DaStGen2.DaStGen2.data, and data.

Referenced by __generate_dastgen_input_file().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ construct_output()

peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.construct_output ( self,
output )

Pass in a version of output.

It is important that external tools are used first before we start any compile or so. So I add them first.

Definition at line 102 of file DaStGenToLegacyTool.py.

References __DaStGenArguments, __generate_dastgen_input_file(), __get_file_name(), DaStGenJarFile, convert::data::PatchData.data, peano4.api.datamodel.DaStGen2.DaStGen2.data, and data.

Here is the call graph for this function:

◆ get_header_file_include()

peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.get_header_file_include ( self)

◆ get_stack_container()

peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.get_stack_container ( self)

Field Documentation

◆ __DaStGenArguments

str peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.__DaStGenArguments = "--plugin PeanoSnippetGenerator --naming Peano4NameTranslator "
staticprivate

Definition at line 14 of file DaStGenToLegacyTool.py.

Referenced by construct_output().

◆ __Template_DebugFlags

peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.__Template_DebugFlags
staticprivate
Initial value:
= """
#ifdef PeanoDebug
persistent parallelise expose double debugX[Dimensions];
persistent parallelise expose double debugH[Dimensions];
#endif
"""

Definition at line 50 of file DaStGenToLegacyTool.py.

Referenced by __generate_dastgen_input_file().

◆ __Template_Prologue

peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.__Template_Prologue
staticprivate
Initial value:
= """
#include "peano4/utils/Globals.h"
// have to know whether we are using MPI
#include "config.h"
Constant: Dimensions;
Packed-Type: short int;
"""

Definition at line 33 of file DaStGenToLegacyTool.py.

Referenced by __generate_dastgen_input_file().

◆ DaStGenJarFile

str peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.DaStGenJarFile = "~/git/DaStGen/DaStGen.jar"
static

Definition at line 13 of file DaStGenToLegacyTool.py.

Referenced by construct_output().

◆ data

peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool.data = data

The documentation for this class was generated from the following file: