snek5000.util.smake#

Snakemake helper utilities

Functions

append_debug_flags(config)

Append to commonly used gcc / gfortran debug flags if SNEK_DEBUG environment is activated.

ensure_env()

Ensure environment variables NEK_SOURCE_ROOT and PATH are intact.

set_compiler_verbosity(config, verbosity)

Set Fortran compiler warnings verbosity:

snek5000.util.smake.ensure_env()[source]#

Ensure environment variables NEK_SOURCE_ROOT and PATH are intact.

snek5000.util.smake.set_compiler_verbosity(config, verbosity)[source]#

Set Fortran compiler warnings verbosity:

Parameters
  • config (dict) –

  • verbosity (int) –

    • 0 == suppress warnings

    • 1 == do nothing

    • 2 == all warnings

snek5000.util.smake.append_debug_flags(config)[source]#

Append to commonly used gcc / gfortran debug flags if SNEK_DEBUG environment is activated.

Parameters

config (dict) – Snakemake configuration. Should contain CFLAGS and FFLAGS keys.