Permalink
Browse files

Simplify call to plotting functions, don't need if block since we have

use_discontinuous as an argument now.
  • Loading branch information...
1 parent 30dc26b commit f8fba60fa8b560f70606ad58007a32f5c993fe32 David Knezevic committed Mar 7, 2014
Showing with 4 additions and 12 deletions.
  1. +4 −12 src/mesh/exodusII_io.C
View
@@ -890,18 +890,10 @@ void ExodusII_IO::write_nodal_data_common(std::string fname,
{
exio_helper->create(fname);
- if (continuous)
- {
- exio_helper->initialize(fname, mesh, /*use_discontinuous=*/ false);
- exio_helper->write_nodal_coordinates(mesh, /*use_discontinuous=*/ false);
- exio_helper->write_elements(mesh, /*use_discontinuous=*/ false);
- }
- else
- {
- exio_helper->initialize(fname, mesh, /*use_discontinuous=*/ true);
- exio_helper->write_nodal_coordinates(mesh, /*use_discontinuous=*/ true);
- exio_helper->write_elements(mesh, /*use_discontinuous=*/ true);
- }
+ exio_helper->initialize(fname, mesh, !continuous);
+ exio_helper->write_nodal_coordinates(mesh, !continuous);
+ exio_helper->write_elements(mesh, !continuous);
+
exio_helper->write_sidesets(mesh);
exio_helper->write_nodesets(mesh);

0 comments on commit f8fba60

Please sign in to comment.