Skip to content

Commit

Permalink
add annotation in ModuleIO::read/write_cube_core()
Browse files Browse the repository at this point in the history
  • Loading branch information
PeizeLin committed Sep 20, 2024
1 parent 4a4dc26 commit f422399
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/module_io/cube_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ extern void write_cube(
const int out_fermi = 1); // mohan add 2007-10-17


// when MPI:
// read file as order (ixy,iz) to data[ixy*nz+iz]
// when serial:
// read file as order (ixy,iz) to data[iz*nxy+ixy]
extern void read_cube_core_match(
std::ifstream &ifs,
#ifdef __MPI
Expand All @@ -73,6 +77,10 @@ extern void read_cube_core_mismatch(
const int ny_read,
const int nz_read);

// when MPI:
// write data[ixy*nplane+iz] to file as order (ixy,iz)
// when serial:
// write data[iz*nxy+ixy] to file as order (ixy,iz)
extern void write_cube_core(
std::ofstream &ofs_cube,
#ifdef __MPI
Expand Down

0 comments on commit f422399

Please sign in to comment.