Dune Core Modules (unstable)
backuprestore.hh
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
34 static void readOrigin(S& /* s */, Dune::FieldVector<typename Coordinates::ctype,Coordinates::dimension>& /* coord */)
39 const Dune::FieldVector<typename Coordinates::ctype,Coordinates::dimension>& /* lowerleft */, A... args)
71 const Dune::FieldVector<typename Coordinates::ctype,Coordinates::dimension>& extension, A... args)
100 std::cerr << "ERROR: BackupRestoreFacility::backup: couldn't open file `" << filename << "'" << std::endl;
107 stream << "YaspGrid BackupRestore Format Version: " << YASPGRID_BACKUPRESTORE_FORMAT_VERSION << std::endl;
139 std::cerr << "ERROR: BackupRestoreFacility::restore: couldn't open file `" << filename << "'" << std::endl;
206 Grid* grid = MaybeHaveOrigin<Coordinates>::createGrid(origin, length, coarseSize, periodic, overlap, comm, &lb);
238 std::cerr << "ERROR: BackupRestoreFacility::backup: couldn't open file `" << filename_str.str() << "'" << std::endl;
244 stream << "YaspGrid BackupRestore Format Version: " << YASPGRID_BACKUPRESTORE_FORMAT_VERSION << std::endl;
276 std::cerr << "ERROR: BackupRestoreFacility::restore: couldn't open file `" << filename_str.str() << "'" << std::endl;
Container for equidistant coordinates in a YaspGrid with non-trivial origin.
Definition: coordinates.hh:131
Coordinate container for a tensor product YaspGrid.
Definition: coordinates.hh:245
const Torus< Communication, dim > & torus() const
return reference to torus
Definition: yaspgrid.hh:246
void globalRefine(int refCount)
refine the grid refCount times.
Definition: yaspgrid.hh:1217
YGridLevelIterator end() const
return iterator pointing to one past the finest level
Definition: yaspgrid.hh:307
int overlapSize(int level, int codim) const
return size (= distance in graph) of overlap region
Definition: yaspgrid.hh:1400
bool isPeriodic(int i) const
return whether the grid is periodic in direction i
Definition: yaspgrid.hh:279
void refineOptions(bool keepPhysicalOverlap)
set options for refinement
Definition: yaspgrid.hh:1271
ReservedVector< YGridLevel, 32 >::const_iterator YGridLevelIterator
Iterator over the grid levels.
Definition: yaspgrid.hh:290
const Communication & comm() const
return a communication object
Definition: yaspgrid.hh:1757
int levelSize(int l, int i) const
return size of the grid (in cells) on level l in direction i
Definition: yaspgrid.hh:264
YGridLevelIterator begin() const
return iterator pointing to coarsest level
Definition: yaspgrid.hh:293
Implement partitioner that gets a fixed partitioning from an array If the given partitioning doesn't ...
Definition: partitioning.hh:147
A few common exception classes.
Implements a vector constructed from a given type representing a field and a compile-time given size.
constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
Return the size of the sequence.
Definition: integersequence.hh:75
static void backup(const Grid &grid, std::ostream &stream)
Definition: backuprestore.hh:105
static Grid * restore(std::istream &stream, Comm comm=Comm())
Definition: backuprestore.hh:145
static Grid * restore(const std::string &filename, Comm comm=Comm())
Definition: backuprestore.hh:132
static void backup(const Grid &grid, const std::string &filename)
Definition: backuprestore.hh:89
static void backup(const Grid &grid, const std::string &filename)
Definition: backuprestore.hh:227
static Grid * restore(std::istream &stream, Comm comm=Comm())
Definition: backuprestore.hh:282
static Grid * restore(const std::string &filename, Comm comm=Comm())
Definition: backuprestore.hh:266
static void backup(const Grid &grid, std::ostream &stream)
Definition: backuprestore.hh:242
static Grid * restore(const std::string &filename)
read a hierarchic grid from disk
Definition: backuprestore.hh:78
static void backup(const Grid &grid, const std::string &filename)
write a hierarchic grid to disk
Definition: backuprestore.hh:51
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 22, 23:30, 2024)