GPUE  v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
fileIO.h File Reference

Routines for input and output of simulation data. More...

#include "../include/ds.h"
#include "../include/tracker.h"
#include <vector>
#include <string>
Include dependency graph for fileIO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FileIO
 

Functions

double2 * FileIO::readIn (std::string fileR, std::string fileI, int gSize)
 Reads in the real and imaginary components from text files. More...
 
void FileIO::writeOut (std::string buffer, std::string file, double2 *data, int length, int step)
 Writes the specified double2 array to a text file. More...
 
void FileIO::writeOutDouble (std::string buffer, std::string file, double *data, int length, int step)
 Writes the specified double array to a text file. More...
 
void FileIO::writeOutBool (std::string buffer, std::string file, bool *data, int length, int step)
 Writes the specified double array to a text file. More...
 
void FileIO::writeOutInt (std::string buffer, std::string file, int *data, int length, int step)
 Writes the specified int array to a text file. More...
 
void FileIO::writeOutInt2 (std::string buffer, std::string file, int2 *data, int length, int step)
 Writes the specified int2 array to a text file. More...
 
void FileIO::writeOutVortex (std::string buffer, std::string file, std::vector< std::shared_ptr< Vtx::Vortex >> &data, int step)
 Writes the specified Vtx::Vortex array to a text file. More...
 
void FileIO::writeOutParam (std::string buffer, Grid &par, std::string file)
 Writes the parameter file. More...
 
int FileIO::readState (std::string name)
 
void FileIO::writeOutAdjMat (std::string buffer, std::string file, int *mat, unsigned int *uids, int dim, int step)
 Write adjacency matrix of ints to a file in Mathematica readable format. More...
 
void FileIO::writeOutAdjMat (std::string buffer, std::string file, double *mat, unsigned int *uids, int dim, int step)
 Write adjacency matrix of doubles to a file in Mathematica readable format. More...
 

Detailed Description

Routines for input and output of simulation data.

Author
Lee J. O'Riordan (mlxd)
Date
12/11/2015
Version
0.1

DESCRIPTION

The functions herein are used to write the simulation data to text-based files (HDF was planned, but for simplicity I removed it). Data from previous simulations can also be read into memory.

Definition in file fileIO.h.