8#include "fieldIoUtil.h"
23 if (label !=
"N_star" && label !=
"N_basis") {
24 std::string msg =
"\n";
25 msg +=
"Error reading field file:\n";
26 msg +=
"Expected N_basis or N_star, but found [";
46 out <<
"N_basis " << std::endl
47 <<
" " << nBasis << std::endl;
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
#define UTIL_ASSERT(condition)
Assertion macro suitable for debugging serial or parallel code.
void writeNBasis(std::ostream &out, int nBasis)
Write the number of basis functions to a basis field file header.
int readNBasis(std::istream &in)
Read the number of basis functions from a basis field file header.
Periodic fields and crystallography.
PSCF package top-level namespace.