polaris.build.mpas_ocean.make_build_script

polaris.build.mpas_ocean.make_build_script(machine, compiler, mpilib, branch, build_dir, debug, clean, make_flags, make_target)[source]

Make a shell script for checking out MPAS-Ocean and its submodules and building MPAS-Ocean.

Parameters:
  • machine (str) – The machine to build on.

  • compiler (str) – The compiler to build with.

  • mpilib (str) – The MPI library to build with.

  • branch (str) – The branch of Omega to build.

  • build_dir (str) – The directory in which to build Omega.

  • debug (bool) – Whether to build in debug mode.

  • clean (bool) – Whether to clean the build directory before building.

  • make_flags (str) – Additional flags to pass to the build system.

  • make_target (str) – The make target to build.

Returns:

script_filename (str, optional) – The filename of the generated build script.