wolfgpu.cli

Module Contents

wolfgpu.cli.VERSION[source]
wolfgpu.cli.DATA_DIR[source]
wolfgpu.cli.WOLF_CLI_EXE[source]
wolfgpu.cli.BENCHMARK_AGGREGATED_RESULT_FILE[source]
wolfgpu.cli.BIG_TEST[source]
wolfgpu.cli.POWER_MODE[source]
wolfgpu.cli.LOGOS = [' __    __      _  __   ___   ___\n/ / /\\ \\ \\___ | |/ _| / _ \\ / _ \\/\\ /\\\n\\ \\/  \\/ /...[source]
wolfgpu.cli.write_wolf_array(wa, generic_name: pathlib.Path)[source]
class wolfgpu.cli.Scenario[source]

Bases: enum.Enum

Inheritance diagram of wolfgpu.cli.Scenario

Generic enumeration.

Derive from this class to define new enumerations.

TWO_ROOMS = 1[source]
SWIMMING_POOL_WITH_HOLE = 2[source]
TWO_SMALL_ROOMS = 3[source]
LINEAR = 4[source]
wolfgpu.cli.bbox2(img)[source]
wolfgpu.cli.bounding_polygon_xy(wa: wolfhece.wolf_array.WolfArray)[source]
wolfgpu.cli.mask_border(wa: wolfhece.wolf_array.WolfArray)[source]

Set a new mask applying only to a one cell around the matrix. It is usefule because SUXY is not smart enough to handle borders which are on the very border of matrices.

wolfgpu.cli.run_wolf_cli(destination_dir: pathlib.Path)[source]
wolfgpu.cli.force_cli_params_in_wolf_model(cli_args: argparse.Namespace, m: wolfhece.mesh2d.wolf2dprev.prev_sim2D)[source]
wolfgpu.cli.force_params_in_gpu(cli_args: argparse.Namespace, gpu: wolfgpu.glsimulation.GLSimulation)[source]
wolfgpu.cli.print_sim_params(sim: wolfgpu.glsimulation.GLSimulation, runner: wolfgpu.SimulationRunner.SimulationRunner, manning: numpy.array, active: numpy.array, h: numpy.array)[source]
wolfgpu.cli.benchmark(destination_dir, cli_args)[source]
wolfgpu.cli.main_func()[source]