FEDEM Solver  R8.0
Source code of the dynamics solver
Functions/Subroutines | Variables
pfunitargs Module Reference

Module with additional source code for the pFUnit driver. More...

Functions/Subroutines

logical function get_srcdir (argument)
 Extracts the source directory from a command-line argument. More...
 

Variables

character(len=:), allocatable, save srcdir
 Source directory of the unit tests. More...
 

Detailed Description

Module with additional source code for the pFUnit driver.

This module contains a function for extracting the directory of the source code for the unit tests, which then can be used when loading specified data files required by the tests. This way the unit test executables can be invoked from an arbitrary working directory.

The pf-files need to be compiled with -DPFUNIT_EXTRA_USAGE=pfUnitArgs and -DPFUNIT_EXTRA_ARGS=get_srcdir to activate this code.

Function/Subroutine Documentation

◆ get_srcdir()

logical function pfunitargs::get_srcdir ( character(len=*), intent(in)  argument)

Extracts the source directory from a command-line argument.

Variable Documentation

◆ srcdir

character(len=:), allocatable, save pfunitargs::srcdir

Source directory of the unit tests.