Page MenuHomec4science

ReadAndWrite.cpp
No OneTemporary

File Metadata

Created
Sun, Oct 6, 09:22

ReadAndWrite.cpp

//
// Created by Arnaud Pannatier on 02.06.18.
//
#include "reader.h"
#include "grid.h"
int main(){
/* Grid A(12,25);
for(int x(0); x<12; x++){
for (int y(0); y<25;y++){
A(x,y) = y+25*x;
std::cout << A(x,y) << " ";
}
}
std::cout << std::endl;
std::vector<double> ret = A.RemoveGhostCellsAndPrepareToWrite(3,1,12,25);
for(auto x: ret){
std::cout << x << " ";
}
*/
//std::cout << A(0,12) << std::endl;
//std::cout << A << std:: endl;
//Reader::writeGridInFile (A,"10zeros.bin", 10,10);
Grid B = Reader::readGridFromFile ("ParallelWriting4.bin", 25,25);
std::cout << B << std::endl;
return 0;
}

Event Timeline