Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
common_io.h
Go to the documentation of this file.
1
12#ifndef COMMON_IO_H
13#define COMMON_IO_H
14
15#include <cstdint>
16#include <string>
17
18#define LEN_STEP 6
19
24std::string endianness();
25
30std::string vtk_float_type();
31
37
38#endif // COMMON_IO_H
std::string vtk_float_type()
Return the VTK name for the floating point type.
Definition common_io.cpp:27
uint32_t vtk_local_node(uint32_t n_nodes, uint32_t k)
Local node of a cell at VTK (and XDMF) position k. Mallard prisms have the (0, 1, 2) normal pointing ...
Definition common_io.cpp:34
std::string endianness()
Return the endianness of the system for VTU file writing.
Definition common_io.cpp:17
KOKKOS_INLINE_FUNCTION rtype dot(const rtype *a, const rtype *b)
Compute the dot product of two arrays.
Definition common_math.h:32