Allium  0.1.0
IO

Input and output routines. More...

Functions

void allium::write_txt (std::string filename, std::vector< LocalVector< double >> columns)
 Write a set of columns into a text file. More...
 
void allium::write_vtk (std::string filename, const PetscMesh< double, 2 > &mesh)
 

Detailed Description

Input and output routines.

Function Documentation

◆ write_txt()

void allium::write_txt ( std::string  filename,
std::vector< LocalVector< double >>  columns 
)

Write a set of columns into a text file.

The numbers of each row are written as ASCII encoded text, separated by spaces. Each row is terminated by a new-line character.

The generated file can be loaded into Numpy using the numpy.loadtxt method of plotted using the Gnuplot plot command.

◆ write_vtk()

void allium::write_vtk ( std::string  filename,
const PetscMesh< double, 2 > &  mesh 
)

Write the mesh values into a VTK file.