Skip to content

Commit

Permalink
have fcompare and particle_compare fail if the same variables are not…
Browse files Browse the repository at this point in the history
… present in the two plotfiles
  • Loading branch information
atmyers committed Nov 20, 2019
1 parent ffacacb commit a26ae5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Tools/Plotfile/fcompare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ int main_main()

if (! all_variables_found) {
amrex::Print() << " WARNING: not all variables present in both files\n";
return EXIT_FAILURE;
}

if (global_error == 0.0 and !any_nans) {
Expand Down
3 changes: 2 additions & 1 deletion Tools/Postprocessing/C_Src/particle_compare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,15 @@ int main_main()
<< " optional arguments:\n"
<< " -r|--rel_tol rtol : relative tolerance (default is 0)\n"
<< std::endl;
return 0;
return EXIT_SUCCESS;
}

ParticleHeader header1(fn1, pt);
ParticleHeader header2(fn2, pt);

if (header1 != header2) {
amrex::Print() << "FAIL - Particle data headers do not agree. \n";
return EXIT_FAILURE;
}

// for each grid, store the corresponding information about where to look up the
Expand Down

0 comments on commit a26ae5d

Please sign in to comment.