JDFTx  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ScalarFieldIO.h File Reference

I/O utilities for the data arrays. More...

#include <core/ScalarField.h>
#include <core/vector3.h>
#include <core/Util.h>

Macros

#define Tptr   std::shared_ptr<T>
 

Functions

template<typename T >
void saveRawBinary (const Tptr &X, FILE *fp)
 Save the data in raw binary format to stream.
 
template<typename T >
void saveRawBinary (const Tptr &X, const char *filename)
 Save the data in raw binary format to file.
 
template<typename T >
void loadRawBinary (Tptr &X, FILE *fp)
 Load the data in raw binary format from stream.
 
template<typename T >
void loadRawBinary (Tptr &X, const char *filename)
 Load the data in raw binary format from file.
 
void saveDX (const ScalarField &, const char *filenamePrefix)
 
std::vector< std::vector
< double > > 
sphericalize (const ScalarField *dataR, int nColumns, double drFac=1.0, vector3<> *center=0)
 
void saveSphericalized (const ScalarField *dataR, int nColumns, const char *filename, double drFac=1.0, vector3<> *center=0)
 
void saveSphericalized (const ScalarFieldTilde *dataG, int nColumns, const char *filename, double dGFac=1.0)
 

Detailed Description

I/O utilities for the data arrays.