Peano
Loading...
Searching...
No Matches
api.Project.Project Class Reference

Here we recreate a multigrid project, without using PETSc. More...

Inheritance diagram for api.Project.Project:
Collaboration diagram for api.Project.Project:

Public Member Functions

 __init__ (self, namespace, project_name, directory=".", executable="peano4matrixfree", subdirectory="", abstract_overwrite=True)
 Create a matrix project.
 set_load_balancing (self, load_balancer_name, load_balancer_arguments)
 Set the load balancing scheme.
 set_Peano4_installation (self, src_path, mode=peano4.api.output.CompileMode.RELEASE)
 Tell the project where to find Peano.
 set_global_simulation_parameters (self, dimensions, offset, domain_size, plot_after_each_mesh_sweep, max_iterations=100, plotter_precision=5)
 Configure global simulation settings.
 set_output_path (self, path)
 generate_Peano4_project (self, verbose=False)
 Build project.
 add_solver (self, solver, auxiliary=False)
 Add a new solver.
 subdirectory (self)
 set_mpi_timeout (self, value)
 set_multicore_orchestration (self, value)
 Set orchestration.
 __init__ (self, namespace, project_name, directory=".", executable="peano4petsc", preconditioner_type="None", solver_type="GMRES", subdirectory="")
 set_load_balancing (self, load_balancer_name, load_balancer_arguments)
 load_balancer_name: string Should be full-qualified name of the load balancer.
 set_Peano4_installation (self, src_path, mode=peano4.api.output.CompileMode.RELEASE)
 src_path: string Path (relative or absolute) to the src directory of Peano.
 set_global_simulation_parameters (self, dimensions, offset, domain_size, plotter_precision=5)
 offset and size should be lists with dimensions double entries.
 set_output_path (self, path)
 generate_Peano4_project (self, verbose=False)
 Build project.
 add_solver (self, solver)
 Takes the solver and runs through the individual steps of the algorithm.
 subdirectory (self)

Data Fields

 algorithm_step_create_grid = peano4.api.solversteps.Step( "CreateGrid", False )
 algorithm_step_init_solution = peano4.api.solversteps.Step( "InitSolution", False )
 algorithm_step_solve = peano4.api.solversteps.Step( "Solve", False )
 algorithm_step_plot = peano4.api.solversteps.Step( "Plot", False )
dict dictionary
 algorithm_step_enumerate_and_init_solution
 algorithm_step_assemble = peano4.api.solversteps.Step("Assemble", False)
 algorithm_step_map_solution_onto_mesh
 preconditioner_type = preconditioner_type
 solver_type = solver_type

Static Public Attributes

str LibraryDebug = "_debug"
str LibraryRelease = ""
str LibraryTrace = "_trace"
str LibraryAsserts = "_asserts"
str LibraryStats = "_stats"

Protected Attributes

 _project = peano4.api.Project(namespace, project_name, directory, subdirectory)
 _subdirectory = subdirectory
bool _abstract_overwrite = abstract_overwrite
list _domain_offset = [0.0, 0.0, 0.0]
list _domain_size = [1.0, 1.0, 1.0]
int _dimensions = 2
str _load_balancer_name = ""
str _load_balancer_arguments = ""
str _Peano_src_directory = "."
 _build_mode = peano4.api.output.CompileMode.ASSERTS
 _executable_name = executable
str _output_path = "./"
list _solvers = []
list _aux_solvers = []
str _multicore_orchestration = "::tarch::multicore::orchestration::createDefaultStrategy()"
 _plot_after_each_mesh_sweep = plot_after_each_mesh_sweep
 _max_iterations = max_iterations
 _plotter_precision = plotter_precision
 _algorithm_step_init_petsc
 _algorithm_step_solve = peano4.api.solversteps.Step("Solve", False)

Private Member Functions

 __configure_makefile (self)
 Parse makefile of Peano to extract the configuration settings.
 __set_solver_repository_dict (self)
 __generate_solver_repository (self)
 __export_constants (self)
 Export all the constrants of the project into a Configure.h file.
 __configure_makefile (self)
 Configure the makefile of the PETSc project.
 __set_solver_repository_dict (self)
 __generate_solver_repository (self)
 type_name_of_solvers: [String] Name of the solvers that we should instantiate and use in the main.
 __export_constants (self)
 We export ExaHyPE's constants.

Detailed Description

Here we recreate a multigrid project, without using PETSc.

Multigrid solver project.

We keep some of the basic steps:

  • _algorithm_step_create_grid
  • _algorithm_step_enumerate_and_init_solution
  • _algorithm_step_solve
  • _algorithm_step_plot

The rest is yet to be fleshed out.

Now that we have multiple solvers in a project, we may not want to use all of them for stopping criteria. Hence, we have a second array for solvers which participate, but are not asked if their stopping criteria have been reached.

The standard extensions that are used for Peano and ExaHyPE.

A project hosts a set of multigrid solvers for different PDEs (which you might eventually want to couple). Other than that, each project generates exactly one main file and a solver repository. The main file is represented by petsc.PETScMain, while the repository is generated directly by the project. Consult generate_Peano4_project() for the latter.

Algorithmic steps

Every PETSc project runs through the following steps:

  • algorithm_step_create_grid
  • algorithm_step_enumerate_and_init_solution
  • _algorithm_step_init_petsc
  • algorithm_step_assemble
  • _algorithm_step_solve
  • algorithm_step_map_solution_onto_mesh
  • algorithm_step_plot

Each of these steps is mapped onto one observer. It is clear that not all steps actually lead to mesh traversals and, therefore, are not to be modified by users. They are simply there to allow the main function to pick a step and to tell all MPI ranks to run the same step on all local trees. I therefore mark these steps as private via a leading underscore.

Attributes

Parameters
_solvers[Solver] List of tuples of typename and names of solvers that this project should use simultaneously.
preconditioner_typeString Preconditioner type to be used. This part of the string should match the final part of the enum class in src/petsc/LinearEquationSystem.h. The namespaceing is taken care of downstream.
solver_typeString Solver type to be used. This part of the string should match the final part of the enum class in src/petsc/LinearEquationSystem.h. The namespaceing is taken care of downstream.

Definition at line 10 of file Project.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

api.Project.Project.__init__ ( self,
namespace,
project_name,
directory = ".",
executable = "peano4matrixfree",
subdirectory = "",
abstract_overwrite = True )

Create a matrix project.

Definition at line 42 of file Project.py.

◆ __init__() [2/2]

api.Project.Project.__init__ ( self,
namespace,
project_name,
directory = ".",
executable = "peano4petsc",
preconditioner_type = "None",
solver_type = "GMRES",
subdirectory = "" )

Definition at line 61 of file Project.py.

References _build_mode, exahype2.api.Project.Project._build_mode, exaparty.api.Project.Project._build_mode, _dimensions, convert::input::PeanoTextPatchFileReader._dimensions, exahype2.api.dslhype.SyntaxTree.Matrix._dimensions, exahype2.api.dslhype.SyntaxTree.MemoryAllocation._dimensions, exahype2.api.dslhype.SyntaxTree.MemoryDeallocation._dimensions, exahype2.api.dslhype.SyntaxTree.Subscript._dimensions, exahype2.api.dslhype.SyntaxTree.TDataBlock._dimensions, exahype2.api.dslhype.SyntaxTree.TSimpleMemref._dimensions, exahype2.api.Project.Project._dimensions, exaparty.api.Project.Project._dimensions, _domain_offset, exahype2.api.Project.Project._domain_offset, exaparty.api.Project.Project._domain_offset, _domain_size, exahype2.api.Project.Project._domain_size, exaparty.api.Project.Project._domain_size, _executable_name, exahype2.api.Project.Project._executable_name, exaparty.api.Project.Project._executable_name, _load_balancer_arguments, exahype2.api.Project.Project._load_balancer_arguments, exaparty.api.Project.Project._load_balancer_arguments, _load_balancer_name, exahype2.api.Project.Project._load_balancer_name, exaparty.api.Project.Project._load_balancer_name, _output_path, exahype2.api.blockstructured.LoadCheckpoint.LoadCheckpoint._output_path, exahype2.api.fv.PlotAsVTKFile.PlotAsVTKFile._output_path, exahype2.api.fv.WriteCheckpoint.WriteCheckpoint._output_path, exahype2.api.Project.Project._output_path, exahype2.api.rkfd4.PlotAsVTKFile.PlotAsVTKFile._output_path, exahype2.api.rkfd4.WriteCheckpoint.WriteCheckpoint._output_path, exaparty.api.Project.Project._output_path, _Peano_src_directory, exahype2.api.Project.Project._Peano_src_directory, exaparty.api.Project.Project._Peano_src_directory, _project, exaparty.api.Project.Project._project, _solvers, exagrype.api.actionsets.SynchroniseTimeStepSizes.SynchroniseTimeStepSizes._solvers, exahype2.api.Project.Project._solvers, _subdirectory, exahype2.api.Project.Project._subdirectory, algorithm_step_create_grid, and exaparty.api.Project.Project.algorithm_step_create_grid.

Member Function Documentation

◆ __configure_makefile() [1/2]

api.Project.Project.__configure_makefile ( self)
private

Parse makefile of Peano to extract the configuration settings.

We parse the configure script's/CMAKE outcome first via parse_configure_script_outcome(). After that, we set the dimension manually as well as the executable name and the build mode. The values for these parameters step from set_Peano4_installation().

Definition at line 135 of file Project.py.

References __export_constants(), exahype2.api.Project.Project.__export_constants(), exaparty.api.Project.Project.__export_constants(), _build_mode, exahype2.api.Project.Project._build_mode, exaparty.api.Project.Project._build_mode, _dimensions, convert::input::PeanoTextPatchFileReader._dimensions, exahype2.api.dslhype.SyntaxTree.Matrix._dimensions, exahype2.api.dslhype.SyntaxTree.MemoryAllocation._dimensions, exahype2.api.dslhype.SyntaxTree.MemoryDeallocation._dimensions, exahype2.api.dslhype.SyntaxTree.Subscript._dimensions, exahype2.api.dslhype.SyntaxTree.TDataBlock._dimensions, exahype2.api.dslhype.SyntaxTree.TSimpleMemref._dimensions, exahype2.api.Project.Project._dimensions, exaparty.api.Project.Project._dimensions, _executable_name, exahype2.api.Project.Project._executable_name, exaparty.api.Project.Project._executable_name, _Peano_src_directory, exahype2.api.Project.Project._Peano_src_directory, exaparty.api.Project.Project._Peano_src_directory, _project, and exaparty.api.Project.Project._project.

Referenced by generate_Peano4_project().

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

◆ __configure_makefile() [2/2]

◆ __export_constants() [1/2]

api.Project.Project.__export_constants ( self)
private

Export all the constrants of the project into a Configure.h file.

We export ExaHyPE's constants. Besides the constants from ExaHyPE, I also export some parameters from Peano onto the ExaHyPE constants file. Therefore, it is important that you parse the configure output before we export the constants.

Definition at line 295 of file Project.py.

References _dimensions, convert::input::PeanoTextPatchFileReader._dimensions, exahype2.api.dslhype.SyntaxTree.Matrix._dimensions, exahype2.api.dslhype.SyntaxTree.MemoryAllocation._dimensions, exahype2.api.dslhype.SyntaxTree.MemoryDeallocation._dimensions, exahype2.api.dslhype.SyntaxTree.Subscript._dimensions, exahype2.api.dslhype.SyntaxTree.TDataBlock._dimensions, exahype2.api.dslhype.SyntaxTree.TSimpleMemref._dimensions, exahype2.api.Project.Project._dimensions, exaparty.api.Project.Project._dimensions, _domain_offset, exahype2.api.Project.Project._domain_offset, exaparty.api.Project.Project._domain_offset, _domain_size, exahype2.api.Project.Project._domain_size, exaparty.api.Project.Project._domain_size, _plotter_precision, exahype2.api.fv.PlotAsVTKFile.PlotAsVTKFile._plotter_precision, exahype2.api.fv.WriteCheckpoint.WriteCheckpoint._plotter_precision, exahype2.api.rkfd4.PlotAsVTKFile.PlotAsVTKFile._plotter_precision, exahype2.api.rkfd4.WriteCheckpoint.WriteCheckpoint._plotter_precision, exaparty.api.Project.Project._plotter_precision, _project, exaparty.api.Project.Project._project, _solvers, exagrype.api.actionsets.SynchroniseTimeStepSizes.SynchroniseTimeStepSizes._solvers, and exahype2.api.Project.Project._solvers.

Referenced by __configure_makefile().

Here is the caller graph for this function:

◆ __export_constants() [2/2]

api.Project.Project.__export_constants ( self)
private

We export ExaHyPE's constants.

Besides the constants from ExaHyPE, I also export some parameters from Peano onto the ExaHyPE constants file. Therefore, it is important that you parse the configure output before we export the constants.

Definition at line 344 of file Project.py.

References _dimensions, convert::input::PeanoTextPatchFileReader._dimensions, exahype2.api.dslhype.SyntaxTree.Matrix._dimensions, exahype2.api.dslhype.SyntaxTree.MemoryAllocation._dimensions, exahype2.api.dslhype.SyntaxTree.MemoryDeallocation._dimensions, exahype2.api.dslhype.SyntaxTree.Subscript._dimensions, exahype2.api.dslhype.SyntaxTree.TDataBlock._dimensions, exahype2.api.dslhype.SyntaxTree.TSimpleMemref._dimensions, exahype2.api.Project.Project._dimensions, exaparty.api.Project.Project._dimensions, _domain_offset, exahype2.api.Project.Project._domain_offset, exaparty.api.Project.Project._domain_offset, _domain_size, exahype2.api.Project.Project._domain_size, exaparty.api.Project.Project._domain_size, _plotter_precision, exahype2.api.fv.PlotAsVTKFile.PlotAsVTKFile._plotter_precision, exahype2.api.fv.WriteCheckpoint.WriteCheckpoint._plotter_precision, exahype2.api.rkfd4.PlotAsVTKFile.PlotAsVTKFile._plotter_precision, exahype2.api.rkfd4.WriteCheckpoint.WriteCheckpoint._plotter_precision, exaparty.api.Project.Project._plotter_precision, _project, exaparty.api.Project.Project._project, _solvers, exagrype.api.actionsets.SynchroniseTimeStepSizes.SynchroniseTimeStepSizes._solvers, and exahype2.api.Project.Project._solvers.

◆ __generate_solver_repository() [1/2]

api.Project.Project.__generate_solver_repository ( self)
private

Definition at line 226 of file Project.py.

References __set_solver_repository_dict(), exahype2.api.generators.SolverRepositoryGenerator.SolverRepositoryGenerator.__set_solver_repository_dict(), _project, exaparty.api.Project.Project._project, and dictionary.

Referenced by generate_Peano4_project().

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

◆ __generate_solver_repository() [2/2]

api.Project.Project.__generate_solver_repository ( self)
private

type_name_of_solvers: [String] Name of the solvers that we should instantiate and use in the main.

Definition at line 268 of file Project.py.

References __set_solver_repository_dict(), exahype2.api.generators.SolverRepositoryGenerator.SolverRepositoryGenerator.__set_solver_repository_dict(), _project, exaparty.api.Project.Project._project, and dictionary.

Here is the call graph for this function:

◆ __set_solver_repository_dict() [1/2]

api.Project.Project.__set_solver_repository_dict ( self)
private

Definition at line 217 of file Project.py.

Referenced by __generate_solver_repository().

Here is the caller graph for this function:

◆ __set_solver_repository_dict() [2/2]

api.Project.Project.__set_solver_repository_dict ( self)
private

◆ add_solver() [1/2]

◆ add_solver() [2/2]

api.Project.Project.add_solver ( self,
solver,
auxiliary = False )

Add a new solver.

Takes the solver and runs through the individual steps of the algorithm. Per step, it tells the solver to inject its particular stuff to the underlying observers.

The auxiliary flag allows us to distinguish the "main" solver from the helpers. The rationale for this is that we only want to measure the termination conditions for a subset of the solvers.

Definition at line 246 of file Project.py.

References _abstract_overwrite, exahype2.api.Project.Project._abstract_overwrite, _aux_solvers, _project, exaparty.api.Project.Project._project, _solvers, exagrype.api.actionsets.SynchroniseTimeStepSizes.SynchroniseTimeStepSizes._solvers, exahype2.api.Project.Project._solvers, _subdirectory, exahype2.api.Project.Project._subdirectory, algorithm_step_create_grid, exaparty.api.Project.Project.algorithm_step_create_grid, algorithm_step_init_solution, algorithm_step_plot, exaparty.api.Project.Project.algorithm_step_plot, and algorithm_step_solve.

◆ generate_Peano4_project() [1/2]

◆ generate_Peano4_project() [2/2]

api.Project.Project.generate_Peano4_project ( self,
verbose = False )

Build project.

Construct and return the Peano4 project, i.e. all the action sets et al that you require to run this Peano4 application with PETSc.

This routine generates a Peano project, i.e. the domain-specific view is translated into a Peano model. Once you have called this routine, any changes to the PETSc project configuration do not propagate into the Peano setup anymore. If you alter the project setup, you have to call generate_Peano4_project() again to get a new snapshot/version of the Peano setup.

The function runs through various steps:

  1. We create an instance of PETScMain that represents the C++ main file.
  2. We add the essential algorithmic steps to the result project. At this point, they should all be configured properly
  3. We configure the makefile via __configure_makefile().
  4. Add the repository holding the instances of the solver.
  5. Ensure that the generated readme file holds all relevant literature and links.

Definition at line 194 of file Project.py.

References __configure_makefile(), exaparty.api.Project.Project.__configure_makefile(), __generate_solver_repository(), _algorithm_step_init_petsc, _algorithm_step_solve, _domain_offset, exahype2.api.Project.Project._domain_offset, exaparty.api.Project.Project._domain_offset, _domain_size, exahype2.api.Project.Project._domain_size, exaparty.api.Project.Project._domain_size, _project, exaparty.api.Project.Project._project, algorithm_step_assemble, algorithm_step_create_grid, exaparty.api.Project.Project.algorithm_step_create_grid, algorithm_step_enumerate_and_init_solution, algorithm_step_map_solution_onto_mesh, algorithm_step_plot, and exaparty.api.Project.Project.algorithm_step_plot.

Here is the call graph for this function:

◆ set_global_simulation_parameters() [1/2]

◆ set_global_simulation_parameters() [2/2]

◆ set_load_balancing() [1/2]

api.Project.Project.set_load_balancing ( self,
load_balancer_name,
load_balancer_arguments )

Set the load balancing scheme.

Parameters
load_balancer_namestring Should be full-qualified name of the load balancer. By default, I recommend to pass "toolbox::loadbalancing::RecursiveSubdivision"
load_balancer_argumentsstring If your load balancing requires parameters, add them here. It is a string that will be copied into the C++ class instantiation. Please add the brackets yourself, i.e. "(3,4,5)" is fine, but "3,4,5" is not. The only exception is the empty parameter list. Here, you can/should simply add the empty string.

Definition at line 94 of file Project.py.

References _load_balancer_arguments, exahype2.api.Project.Project._load_balancer_arguments, exaparty.api.Project.Project._load_balancer_arguments, _load_balancer_name, exahype2.api.Project.Project._load_balancer_name, and exaparty.api.Project.Project._load_balancer_name.

◆ set_load_balancing() [2/2]

api.Project.Project.set_load_balancing ( self,
load_balancer_name,
load_balancer_arguments )

load_balancer_name: string Should be full-qualified name of the load balancer.

By default, I recommend to pass "toolbox::loadbalancing::RecursiveSubdivision"

load_balancer_arguments: string If your load balancing requires parameters, add them here. It is a string that will be copied into the C++ class instantiation. Please add the brackets yourself, i.e. "(3,4,5)" is fine, but "3,4,5" is not. The only exception is the empty parameter list. Here, you can/should simply add the empty string.

Definition at line 108 of file Project.py.

References _load_balancer_arguments, exahype2.api.Project.Project._load_balancer_arguments, exaparty.api.Project.Project._load_balancer_arguments, _load_balancer_name, exahype2.api.Project.Project._load_balancer_name, and exaparty.api.Project.Project._load_balancer_name.

◆ set_mpi_timeout()

api.Project.Project.set_mpi_timeout ( self,
value )

Definition at line 373 of file Project.py.

◆ set_multicore_orchestration()

api.Project.Project.set_multicore_orchestration ( self,
value )

Set orchestration.

value has to be a string which creates an orchestration object, i.e., an object of the type tarch.multicore.orchestration.Orchestration. You can either create it directly (in this case you need to add a new), or you can use a factory method such as "tarch::multicore::orchestration::StrategyFactory::createDefaultStrategy()".

A typical usage looks similar to

project.set_multicore_orchestration( "new ::tarch::multicore::orchestration::Hardcoded(8,256,tarch::multicore::Task::Host,::tarch::multicore::orchestration::Hardcoded::NoNestedParallelism,::tarch::multicore::orchestration::FusionImplementation::LazyEvaluation)" )

Definition at line 377 of file Project.py.

◆ set_output_path() [1/2]

◆ set_output_path() [2/2]

◆ set_Peano4_installation() [1/2]

api.Project.Project.set_Peano4_installation ( self,
src_path,
mode = peano4.api.output.CompileMode.RELEASE )

Tell the project where to find Peano.

Once we know where to find Peano, we can parse the configuration/makefile there and know which compile parameters to use. We also know then where to search for the static libraries.

Parameters
src_pathstring Path (relative or absolute) to the src directory of Peano. This path should hold both the headers (in subdirectories) and all the static libraries.
modepeano4.api.output.CompileMode

Definition at line 114 of file Project.py.

References _build_mode, exahype2.api.Project.Project._build_mode, exaparty.api.Project.Project._build_mode, _Peano_src_directory, exahype2.api.Project.Project._Peano_src_directory, and exaparty.api.Project.Project._Peano_src_directory.

◆ set_Peano4_installation() [2/2]

api.Project.Project.set_Peano4_installation ( self,
src_path,
mode = peano4.api.output.CompileMode.RELEASE )

src_path: string Path (relative or absolute) to the src directory of Peano.

This path should hold both the headers (in subdirectories) and all the static libraries.

mode: peano4.api.output.CompileMode

Definition at line 135 of file Project.py.

References _build_mode, exahype2.api.Project.Project._build_mode, exaparty.api.Project.Project._build_mode, _Peano_src_directory, exahype2.api.Project.Project._Peano_src_directory, and exaparty.api.Project.Project._Peano_src_directory.

◆ subdirectory() [1/2]

◆ subdirectory() [2/2]

Field Documentation

◆ _abstract_overwrite

api.Project.Project._abstract_overwrite = abstract_overwrite
protected

Definition at line 60 of file Project.py.

Referenced by add_solver().

◆ _algorithm_step_init_petsc

api.Project.Project._algorithm_step_init_petsc
protected
Initial value:
"InitPETSc", False
)

Definition at line 95 of file Project.py.

Referenced by add_solver(), and generate_Peano4_project().

◆ _algorithm_step_solve

api.Project.Project._algorithm_step_solve = peano4.api.solversteps.Step("Solve", False)
protected

Definition at line 99 of file Project.py.

Referenced by generate_Peano4_project().

◆ _aux_solvers

list api.Project.Project._aux_solvers = []
protected

Definition at line 78 of file Project.py.

Referenced by add_solver().

◆ _build_mode

api.Project.Project._build_mode = peano4.api.output.CompileMode.ASSERTS
protected

Definition at line 72 of file Project.py.

Referenced by __configure_makefile(), __init__(), and set_Peano4_installation().

◆ _dimensions

◆ _domain_offset

list api.Project.Project._domain_offset = [0.0, 0.0, 0.0]
protected

◆ _domain_size

◆ _executable_name

api.Project.Project._executable_name = executable
protected

◆ _load_balancer_arguments

str api.Project.Project._load_balancer_arguments = ""
protected

Definition at line 68 of file Project.py.

Referenced by __init__(), and set_load_balancing().

◆ _load_balancer_name

str api.Project.Project._load_balancer_name = ""
protected

Definition at line 67 of file Project.py.

Referenced by __init__(), and set_load_balancing().

◆ _max_iterations

api.Project.Project._max_iterations = max_iterations
protected

Definition at line 174 of file Project.py.

Referenced by generate_Peano4_project().

◆ _multicore_orchestration

str api.Project.Project._multicore_orchestration = "::tarch::multicore::orchestration::createDefaultStrategy()"
protected

Definition at line 92 of file Project.py.

◆ _output_path

str api.Project.Project._output_path = "./"
protected

Definition at line 74 of file Project.py.

Referenced by __init__(), and set_output_path().

◆ _Peano_src_directory

str api.Project.Project._Peano_src_directory = "."
protected

Definition at line 69 of file Project.py.

Referenced by __configure_makefile(), __init__(), and set_Peano4_installation().

◆ _plot_after_each_mesh_sweep

api.Project.Project._plot_after_each_mesh_sweep = plot_after_each_mesh_sweep
protected

Definition at line 173 of file Project.py.

Referenced by generate_Peano4_project().

◆ _plotter_precision

api.Project.Project._plotter_precision = plotter_precision
protected

Definition at line 175 of file Project.py.

Referenced by __export_constants(), and set_global_simulation_parameters().

◆ _project

◆ _solvers

list api.Project.Project._solvers = []
protected

◆ _subdirectory

◆ algorithm_step_assemble

api.Project.Project.algorithm_step_assemble = peano4.api.solversteps.Step("Assemble", False)

Definition at line 98 of file Project.py.

Referenced by add_solver(), and generate_Peano4_project().

◆ algorithm_step_create_grid

api.Project.Project.algorithm_step_create_grid = peano4.api.solversteps.Step( "CreateGrid", False )

Definition at line 80 of file Project.py.

Referenced by __init__(), add_solver(), add_solver(), and generate_Peano4_project().

◆ algorithm_step_enumerate_and_init_solution

api.Project.Project.algorithm_step_enumerate_and_init_solution
Initial value:
"EnumerateAndInitSolution", False
)

Definition at line 92 of file Project.py.

Referenced by add_solver(), and generate_Peano4_project().

◆ algorithm_step_init_solution

api.Project.Project.algorithm_step_init_solution = peano4.api.solversteps.Step( "InitSolution", False )

Definition at line 81 of file Project.py.

Referenced by add_solver(), and generate_Peano4_project().

◆ algorithm_step_map_solution_onto_mesh

api.Project.Project.algorithm_step_map_solution_onto_mesh
Initial value:
"MapSolutionOntoMesh", False
)

Definition at line 100 of file Project.py.

Referenced by add_solver(), and generate_Peano4_project().

◆ algorithm_step_plot

api.Project.Project.algorithm_step_plot = peano4.api.solversteps.Step( "Plot", False )

Definition at line 84 of file Project.py.

Referenced by add_solver(), add_solver(), and generate_Peano4_project().

◆ algorithm_step_solve

api.Project.Project.algorithm_step_solve = peano4.api.solversteps.Step( "Solve", False )

Definition at line 82 of file Project.py.

Referenced by add_solver(), and generate_Peano4_project().

◆ dictionary

dict api.Project.Project.dictionary
Initial value:
= {
"SOLVER_INSTANCES": [(x.typename(), x.instance_name()) for x in self._solvers ],
"AUX_SOLVER_INSTANCES": [(x.typename(), x.instance_name()) for x in self._aux_solvers ],
"LOAD_BALANCER": self._load_balancer_name,
"LOAD_BALANCER_ARGUMENTS": self._load_balancer_arguments,
"MULTICORE_ORCHESTRATION": self._multicore_orchestration,
}

Definition at line 218 of file Project.py.

Referenced by __generate_solver_repository(), and __set_solver_repository_dict().

◆ LibraryAsserts

str api.Project.Project.LibraryAsserts = "_asserts"
static

Definition at line 39 of file Project.py.

◆ LibraryDebug

str api.Project.Project.LibraryDebug = "_debug"
static

Definition at line 36 of file Project.py.

◆ LibraryRelease

str api.Project.Project.LibraryRelease = ""
static

Definition at line 37 of file Project.py.

◆ LibraryStats

str api.Project.Project.LibraryStats = "_stats"
static

Definition at line 40 of file Project.py.

◆ LibraryTrace

str api.Project.Project.LibraryTrace = "_trace"
static

Definition at line 38 of file Project.py.

◆ preconditioner_type

api.Project.Project.preconditioner_type = preconditioner_type

Definition at line 105 of file Project.py.

Referenced by __set_solver_repository_dict().

◆ solver_type

api.Project.Project.solver_type = solver_type

Definition at line 106 of file Project.py.

Referenced by __set_solver_repository_dict().


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