Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F71635429
io_hdf5_meshes.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jul 12, 08:46
Size
765 B
Mime Type
text/x-c
Expires
Sun, Jul 14, 08:46 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18942734
Attached To
rSPECMICP SpecMiCP / ReactMiCP
io_hdf5_meshes.cpp
View Options
#include "catch.hpp"
#include "dfpm/meshes/generic_mesh1d.hpp"
#include "dfpm/io/meshes.hpp"
#include <H5Cpp.h>
#include "dfpm/io/hdf5_mesh.hpp"
#include "utils/io/specmicp_hdf5.hpp"
using
namespace
specmicp
;
using
namespace
specmicp
::
mesh
;
using
namespace
specmicp
::
io
;
TEST_CASE
(
"HDF5 output"
,
"[Mesh],[1D],[io],[hdf5]"
)
{
SECTION
(
"test ramp mesh 1d"
)
{
Ramp1DMeshGeometry
geometry
;
geometry
.
dx_min
=
2
;
geometry
.
dx_max
=
100
;
geometry
.
length_ramp
=
1000
;
geometry
.
length_plateau
=
1000
;
geometry
.
section
=
1
;
Mesh1DPtr
the_mesh
=
ramp_mesh1d
(
geometry
);
HDF5File
file
(
"test_mesh.hf5"
,
HDF5_OpenMode
::
CreateTruncate
);
save_mesh_coordinates
(
file
,
"mesh"
,
"/"
,
the_mesh
);
}
}
Event Timeline
Log In to Comment