Read by libcpmdc at run time¶
Variable |
Read in |
Effect |
|---|---|---|
|
|
directory holding
the pseudopotential
files named in the
deck; |
|
same place, when
|
fallback for the same directory |
|
|
file that receives the rendered method deck; each write replaces the last |
|
|
|
The first call of an OpenCPMD session fails when neither
CPMDC_PSEUDO_DIR nor CPMD_PP_LIBRARY_PATH names an existing
directory. The result message and cpmdc_last_error() name that
directory; the call does not report an unconverged SCF. While cpmdc
is in the pseudopotential directory it also sets
CPMD_PP_LIBRARY_PATH and PP_LIBRARY_PATH to that directory with
a trailing slash, for OpenCPMD’s own lookup. The change of directory is
needed because OpenCPMD’s get_pplib takes argv[2] as the library
path whenever the process has more than one argument, which most hosts
do. Once the pseudopotential files are read, the working directory
becomes permanentDir if that field is set, otherwise scratchDir,
otherwise the host directory from before the call. RESTART.1,
LATEST, GEOMETRY, and GEOMETRY.xyz are written there.
LATEST and GEOMETRY do not follow FILEPATH, so the working
directory is what places them. The pseudopotential directory is left
unchanged.
CPMDC_STRESS=0 saves the stress calculation for callers that use
only energy and forces, and the stress snapshot stays invalid. Isolated
cells never compute stress, whatever the variable says, and the snapshot
stays invalid for them even when the box volume is positive.
Read by the tests and tools¶
Variable |
Read by |
Effect |
|---|---|---|
|
|
OpenCPMD source tree
to probe for
|
|
|
OpenCPMD source tree for the parser token check |
|
|
the |
|
|
the Make and archiver
programs; default
|
The live tests of an OpenCPMD build (meson test -C build-cpmd) run
libcpmdc, so they need CPMDC_PSEUDO_DIR like any other host.
Read by hosts that load libcpmdc¶
These belong to the host, not to cpmdc, and are listed here because
they decide which libcpmdc a host loads.
Variable |
Host |
Effect |
|---|---|---|
|
|
path of the
|
|
eOn |
overrides
|
|
OpenMP runtime |
threads per rank inside CPMD when OpenCPMD was built with OpenMP |