_build_utils._fortran

Module Contents

Functions

uses_veclib(info)
uses_accelerate(info)
uses_mkl(info)
needs_g77_abi_wrapper(info)

Returns True if g77 ABI wrapper must be used.

get_g77_abi_wrappers(info)

Returns file names of source files containing Fortran ABI wrapper routines.

needs_sgemv_fix(info)

Returns True if SGEMV must be fixed.

get_sgemv_fix(info)

Returns source file needed to correct SGEMV

split_fortran_files(source_dir, subroutines=None)

Split each file in source_dir into separate files per subroutine.

source_dir : str
Full path to directory in which sources to be split are located.
subroutines : list of str, optional
Subroutines to split. (Default: all)
fnames : list of str
List of file names (not including any path) that were created in source_dir.

This function is useful for code that can’t be compiled with g77 because of type casting errors which do work with gfortran.

Created files are named: original_name + '_subr_i' + '.f', with i starting at zero and ending at num_subroutines_in_file - 1.