Permalink
Browse files

minor fix to avoid foo.m.e filename

  • Loading branch information...
1 parent 3d54374 commit f0c5fa84b18dba1c14d689bb2020dd55b912843e @benkirk benkirk committed Feb 25, 2014
Showing with 6 additions and 4 deletions.
  1. +6 −4 examples/adaptivity/adaptivity_ex4/adaptivity_ex4.C
@@ -181,6 +181,12 @@ int main(int argc, char** argv)
else
output_file += "uniform";
+#ifdef LIBMESH_HAVE_EXODUS_API
+ // If we have Exodus, use the same base output filename
+ std::string exd_file = output_file;
+ exd_file += ".e";
+#endif // #ifdef LIBMESH_HAVE_EXODUS_API
+
output_file += ".m";
std::ofstream out (output_file.c_str());
@@ -355,10 +361,6 @@ int main(int argc, char** argv)
}
#ifdef LIBMESH_HAVE_EXODUS_API
- // Write out the solution
- std::string exd_file = output_file;
- exd_file += ".e";
-
// After solving the system write the solution
// to a ExodusII-formatted plot file.
ExodusII_IO (mesh).write_equation_systems (exd_file,

3 comments on commit f0c5fa8

Owner

roystgnr commented on f0c5fa8 Feb 25, 2014

Thanks for catching this!

Owner

benkirk replied Feb 25, 2014

Owner

roystgnr replied Feb 25, 2014

Please sign in to comment.