![]() |
Dune-Fufem 2.11-git
|
Loading...
Searching...
No Matches
matlab_io.hh File Reference
Code for writing 1d-grid data in Matlab format. More...
Go to the source code of this file.
Functions | |
| template<class GridType > | |
| FILE * | openFile (const std::string &filename, GridType &grid) |
| Open file for writing and write the coordinates of the grid vertices. | |
| template<class GridType > | |
| FILE * | openFileDD (const std::string &filename, const std::array< GridType *, 2 > &grid) |
| Open file for writing and write the coordinates of the grid vertices FOR TWO GRIDS. | |
| template<class VectorType > | |
| void | write (FILE *fp, const VectorType &u) |
| Append the content of v as one ascii line to fp. | |
| template<class VectorType > | |
| void | write (FILE *fp, const VectorType &u, int sd) |
| Append the content of v as one ascii line to fp tracking two subdomains. | |
Detailed Description
Code for writing 1d-grid data in Matlab format.
Function Documentation
◆ openFile()
template<class GridType >
| FILE * openFile | ( | const std::string & | filename, |
| GridType & | grid | ||
| ) |
Open file for writing and write the coordinates of the grid vertices.
We implicitly assume that the grid is 1D.
◆ openFileDD()
template<class GridType >
| FILE * openFileDD | ( | const std::string & | filename, |
| const std::array< GridType *, 2 > & | grid | ||
| ) |
Open file for writing and write the coordinates of the grid vertices FOR TWO GRIDS.
This is for domain decomposition stuff. We implicitly assume that the grids are 1D.
◆ write() [1/2]
template<class VectorType >
| void write | ( | FILE * | fp, |
| const VectorType & | u | ||
| ) |
Append the content of v as one ascii line to fp.
◆ write() [2/2]
template<class VectorType >
| void write | ( | FILE * | fp, |
| const VectorType & | u, | ||
| int | sd | ||
| ) |
Append the content of v as one ascii line to fp tracking two subdomains.
