Peano
Loading...
Searching...
No Matches
studies-single-black-hole Namespace Reference

Functions

 parse_arguments ()
 
 build (name, configuration, arguments, directory)
 Generate and compile one configuration.
 
 run (arguments, directory, threads, repetition)
 Run the executable once.
 
 parse_log (path)
 Metrics Peano's step report writes at the end of a run.
 
 main ()
 

Variables

 HERE = os.path.dirname(os.path.abspath(__file__))
 
list Compilers = ["sequential", "fusion-only", "producer-consumer-sequential", "producer-consumer-fusion"]
 
dict SchemeStudy
 
dict PerformanceStudy
 

Function Documentation

◆ build()

studies-single-black-hole.build (   name,
  configuration,
  arguments,
  directory 
)

Generate and compile one configuration.

Returns the wall time or None if it failed.

Definition at line 124 of file studies-single-black-hole.py.

Referenced by main().

Here is the caller graph for this function:

◆ main()

studies-single-black-hole.main ( )

Definition at line 189 of file studies-single-black-hole.py.

References build(), main(), parse_arguments(), parse_log(), and run().

Referenced by main().

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

◆ parse_arguments()

studies-single-black-hole.parse_arguments ( )

Definition at line 77 of file studies-single-black-hole.py.

Referenced by main().

Here is the caller graph for this function:

◆ parse_log()

studies-single-black-hole.parse_log (   path)

Metrics Peano's step report writes at the end of a run.

Returns the seconds of the setup, the seconds spent in all time stepping sweeps, the number of sweeps, and the final time stamp. Entries are None if the run did not get that far.

Definition at line 166 of file studies-single-black-hole.py.

Referenced by main().

Here is the caller graph for this function:

◆ run()

studies-single-black-hole.run (   arguments,
  directory,
  threads,
  repetition 
)

Run the executable once.

Returns (exit code, wall time).

Definition at line 143 of file studies-single-black-hole.py.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ Compilers

list studies-single-black-hole.Compilers = ["sequential", "fusion-only", "producer-consumer-sequential", "producer-consumer-fusion"]

Definition at line 56 of file studies-single-black-hole.py.

◆ HERE

studies-single-black-hole.HERE = os.path.dirname(os.path.abspath(__file__))

Definition at line 54 of file studies-single-black-hole.py.

◆ PerformanceStudy

dict studies-single-black-hole.PerformanceStudy
Initial value:
1= {
2 f"{mesh}-{compiler}": f"--scheme fv {amr} --compiler {compiler}"
3 for compiler in Compilers
4 for mesh, amr in [("regular", ""), ("amr-1", "--amr-levels 1 --amr-radius 1")]
5}

Definition at line 70 of file studies-single-black-hole.py.

◆ SchemeStudy

dict studies-single-black-hole.SchemeStudy
Initial value:
1= {
2 "fv-regular": "--scheme fv",
3 "fv-amr-1": "--scheme fv --amr-levels 1 --amr-radius 1",
4 "fd4-rk2": "--scheme fd4 --rk-order 2",
5 "fd4-rk3": "--scheme fd4 --rk-order 3",
6 "fd4-rk4": "--scheme fd4 --rk-order 4",
7 "fd4-rk4-lopsided": "--scheme fd4 --rk-order 4 --lopsided",
8 "fd4-rk4-lopsided-ko": "--scheme fd4 --rk-order 4 --lopsided --ko-sigma 8.0",
9 "fd4-rk4-amr-1": "--scheme fd4 --rk-order 4 --amr-levels 1 --amr-radius 1",
10}

Definition at line 59 of file studies-single-black-hole.py.