Loading [MathJax]/extensions/tex2jax.js
ug4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
file_io.h File Reference

Go to the source code of this file.

Namespaces

namespace  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.
 
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.
 
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.
 
template<typename TAPos >
void ug::MergeGrids (Grid &mrgGrid, Grid &grid, ISubsetHandler &mrgSh, ISubsetHandler &sh, TAPos aPos, bool joinSubsets)
 Merges to grids into one grid.
 
bool ug::SaveGridHierarchyTransformed (MultiGrid &mg, const char *filename, number offset)
 Saves a grid hierarchy by offsetting levels along the z-axis.
 
bool ug::SaveGridHierarchyTransformed (MultiGrid &mg, ISubsetHandler &sh, const char *filename, number offset)
 Saves a grid hierarchy by offsetting levels along the z-axis.
 
template<class TAPos >
bool ug::SaveGridLevel (MultiGrid &srcMG, ISubsetHandler &srcSH, int lvl, const char *filename, TAPos aPos)
 Saves a grid level to a file.
 
bool ug::SaveGridLevelToFile (MultiGrid &srcMG, ISubsetHandler &srcSH, int lvl, const char *filename)
 Saves a grid level to a file.
 
bool ug::SaveParallelGridLayout (MultiGrid &mg, const char *filename, number offset=0.1)
 Saves the grid-layout of parallel multi-grids.
 
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.
 
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.
 
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.
 
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.
 
bool ug::LoadGridFromFile (Grid &grid, const char *filename, int procId)
 Loads a grid from a file. Position data is written to aPosition.
 
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.
 
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.
 
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.
 
bool ug::SaveGridToFile (Grid &grid, const char *filename)
 Saves a grid to a file. Position data is read from aPosition.
 
bool ug::SaveGridToFile (Grid &grid, ISubsetHandler &sh, const char *filename)
 Saves a grid to a file. Position data is read from aPosition.