fab.tools.pfunit#

This file contains the pFUnit tool for Fab.

Classes

PfUnit()

This is a class to encapsulate pFUnit.

class fab.tools.pfunit.PfUnit#

This is a class to encapsulate pFUnit. It relies on the environment variable $PFUNIT to indicate the location of the source code. This is required since besides .mod files and executable, it also contains the source code for a Fortran driver program . It assumes that pFUnit’s preprocessor funitproc is in $PFUNIT/bin.

get_root_path()#
Return type:

Path

Returns:

the root path of pFUnit.

get_include_path()#
Return type:

Path

Returns:

the include directory for PFUnit.

get_driver_f90()#
Return type:

str

Returns:

the content of pFUnit’s driver.F90 file.

process(pf_path, f90_out_path)#

Processes the .pf file to create an output f90 file.

Parameters:
  • pf_path (Path) – the input path.

  • f90_out_path (Path) – destination path.