Skip to content

This folder contains three header files 'vector.h', 'matrix.h' and 'matrix3d.h' with dynamic memory allocation. A useful pdf I found online is also included.

Notifications You must be signed in to change notification settings

PratikAghor/template_hdf5_io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

old_hederfiles:

  • contains initial version of my vector and matrix2d classes

Write-Read vect/matrix2d arrays in hdf5 format

Author - Pratik Aghor

Following points outline the procedure to make the tests and results of the tests obtained

  • make a new directory mkdir build
  • change to that directory cd build
  • run cmake ..
  • To check if tests pass type ctest . (currently, there are no tests in the test form)
  • To generate u0.h5 execute the executable ./write_hdf5
  • To read the saved u0.h5 in C++ execute the executable ./read_hdf5
  • To read the saved u0.h5 in python type python3 read_data.py

For 1d vect arrays:

  • To generate rI.h5 execute the executable ./write_vect_hdf5
  • To read the saved rI.h5 in C++ execute the executable ./read_vect_hdf5
  • To read the saved rI.h5 in python type python3 read_data.py

TODO:

  • append vect

About

This folder contains three header files 'vector.h', 'matrix.h' and 'matrix3d.h' with dynamic memory allocation. A useful pdf I found online is also included.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published