Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit b243a2dd authored by frey_m's avatar frey_m
Browse files

Use label for writing file

parent eb1a805e
No related branches found
No related tags found
1 merge request!16Merge AMR fork into OPAL/master
...@@ -53,7 +53,7 @@ void dumpVTKVector( FieldType & f, const ParticleType & p,int iteration = 0, std ...@@ -53,7 +53,7 @@ void dumpVTKVector( FieldType & f, const ParticleType & p,int iteration = 0, std
} }
template<typename FieldType, typename ParticleType> template<typename FieldType, typename ParticleType>
void dumpVTKScalar( FieldType & f, const ParticleType & p,int iteration = 0, std::string label="RhoFiled") { void dumpVTKScalar( FieldType & f, const ParticleType & p,int iteration = 0, std::string label="RhoField") {
NDIndex<3> lDom = f.getLayout().getLocalNDIndex(); NDIndex<3> lDom = f.getLayout().getLocalNDIndex();
int nx =lDom[0].length() ; int ny = lDom[1].length(); int nz=lDom[2].length() ; int nx =lDom[0].length() ; int ny = lDom[1].length(); int nz=lDom[2].length() ;
double dx=p->hr_m[0]; double dy=p->hr_m[1]; double dz=p->hr_m[2]; double dx=p->hr_m[0]; double dy=p->hr_m[1]; double dz=p->hr_m[2];
...@@ -102,7 +102,7 @@ void dumpVTKScalar( FieldType & f, const ParticleType & p,int iteration = 0, std ...@@ -102,7 +102,7 @@ void dumpVTKScalar( FieldType & f, const ParticleType & p,int iteration = 0, std
csvout.setf(std::ios::scientific, std::ios::floatfield); csvout.setf(std::ios::scientific, std::ios::floatfield);
std::stringstream fname; std::stringstream fname;
fname << "data/RhoSum"; fname << "data/" << label << "Sum";
fname << ".csv"; fname << ".csv";
// open a new data file for this iteration // open a new data file for this iteration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment