Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F75819912
reader.h
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
Sun, Aug 4, 11:58
Size
1 KB
Mime Type
text/x-c++
Expires
Tue, Aug 6, 11:58 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
19615373
Attached To
rTSUNAMIPROJECT PHPC-TSUNAMI-PROJECT
reader.h
View Options
//
// Created by Arnaud Pannatier on 06.05.18.
//
#ifndef PHPCTSUNAMIPROJECT_READER_H
#define PHPCTSUNAMIPROJECT_READER_H
#include <string>
#include <mpi.h>
#include "grid.h"
class
Reader
{
public:
/// Binary reader - Classical approach - row major
static
Grid
readGridFromFile
(
std
::
string
,
int
,
int
);
/// Binary Parallel reader - row major
static
Grid
ParallelReadFromFile
(
std
::
string
,
int
,
int
,
MPI_Comm
);
/// Binary Parallel reader - column major
static
Grid
ParallelReadFromColumnMajorFile
(
std
::
string
,
int
,
int
,
int
,
MPI_Comm
);
/// Binary writer - Classical approach - row major
static
void
writeGridInFile
(
Grid
&
,
std
::
string
,
int
,
int
);
/// Binary Parallel Writer - row major
static
void
ParallelwriteGridInFile
(
double
*
,
std
::
string
,
int
,
int
,
MPI_Comm
);
/// Binary Parallel Writer - Column major
static
void
ParallelwriteGridInColumnMajorFile
(
double
*
,
std
::
string
,
int
,
int
,
int
,
MPI_Comm
);
/// Transpose the grid for Column major writing
static
std
::
vector
<
double
>
PrepareVectorForColumnMajor
(
std
::
vector
<
double
>
arr
,
int
,
int
);
};
#endif
//PHPCTSUNAMIPROJECT_READER_H
Event Timeline
Log In to Comment