ug4
file_io.h File Reference

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<class TAPos >
void ug::CopyGrid (Grid &srcGrid, Grid &destGrid, ISubsetHandler &srcSH, ISubsetHandler &destSH, TAPos aPos)
 Copies a grid to a separate grid. More...
 
template<class TElem >
void ug::CopyGridElements (Grid &srcGrid, Grid &destGrid, ISubsetHandler &srcSH, ISubsetHandler &destSH, Attachment< Vertex * > &aNewVrt)
 Copy grid elements of type TElem from srcGrid to destGrid. More...
 
template<class TAPos >
void ug::CopyGridLevel (MultiGrid &srcMG, Grid &destGrid, ISubsetHandler &srcSH, ISubsetHandler &destSH, int lvl, TAPos aPos)
 Copies a grid level to a separate grid. More...
 
template<typename TAPos >
void ug::MergeGrids (Grid &mrgGrid, Grid &grid, ISubsetHandler &mrgSh, ISubsetHandler &sh, TAPos aPos, bool joinSubsets)
 Merges to grids into one grid. More...
 
bool ug::SaveGridHierarchyTransformed (MultiGrid &mg, const char *filename, number offset)
 Saves a grid hierarchy by offsetting levels along the z-axis. More...
 
bool ug::SaveGridHierarchyTransformed (MultiGrid &mg, ISubsetHandler &sh, const char *filename, number offset)
 Saves a grid hierarchy by offsetting levels along the z-axis. More...
 
template<class TAPos >
bool ug::SaveGridLevel (MultiGrid &srcMG, ISubsetHandler &srcSH, int lvl, const char *filename, TAPos aPos)
 Saves a grid level to a file. More...
 
bool ug::SaveGridLevelToFile (MultiGrid &srcMG, ISubsetHandler &srcSH, int lvl, const char *filename)
 Saves a grid level to a file. More...
 
bool ug::SaveParallelGridLayout (MultiGrid &mg, const char *filename, number offset=0.1)
 Saves the grid-layout of parallel multi-grids. More...
 
bool ug::SaveSurfaceViewTransformed (MultiGrid &mg, const SurfaceView &sv, const char *filename, number offset=0.1)
 Saves a grid and assigns elements to subsets based on their surface-view-state. More...
 
template<class TAPos >
UG_API bool ug::LoadGridFromFile (Grid &grid, const char *filename, TAPos &aPos, int procId=-1)
 Loads a grid from a file. Position data is written to the specified attachment. More...
 
template<class TAPos >
UG_API bool ug::LoadGridFromFile (Grid &grid, ISubsetHandler &sh, const char *filename, TAPos &aPos, int procId=-1)
 Loads a grid from a file. Position data is written to the specified attachment. More...
 
template<class TAPos >
UG_API bool ug::LoadGridFromFile (Grid &grid, SPProjectionHandler &ph, size_t &num_ph, ISubsetHandler &sh, std::vector< std::string > additionalSHNames, std::vector< SmartPtr< ISubsetHandler >> ash, const char *filename, TAPos &aPos, int procId=-1)
 Loads a grid from a file. Position data is written to the specified attachment. More...
 
bool ug::LoadGridFromFile (Grid &grid, const char *filename, int procId)
 Loads a grid from a file. Position data is written to aPosition. More...
 
bool ug::LoadGridFromFile (Grid &grid, ISubsetHandler &sh, const char *filename, int procId=-1)
 Loads a grid from a file. Position data is written to aPosition. More...
 
template<class TAPos >
UG_API bool ug::SaveGridToFile (Grid &grid, const char *filename, TAPos &aPos)
 Saves a grid to a file. Position data is read from the specified attachment. More...
 
template<class TAPos >
UG_API bool ug::SaveGridToFile (Grid &grid, ISubsetHandler &sh, const char *filename, TAPos &aPos)
 Saves a grid to a file. Position data is read from the specified attachment. More...
 
bool ug::SaveGridToFile (Grid &grid, const char *filename)
 Saves a grid to a file. Position data is read from aPosition. More...
 
bool ug::SaveGridToFile (Grid &grid, ISubsetHandler &sh, const char *filename)
 Saves a grid to a file. Position data is read from aPosition. More...