Skip to content

Commit

Permalink
Nemesis output can be performed even if the underlying libMesh mesh i…
Browse files Browse the repository at this point in the history
…s a SerialMesh.

Removing an expect_err test and modifying another so
that it runs for serial meshes as well.

Refs #2105.

r20833
  • Loading branch information
John Peterson authored and permcody committed Feb 14, 2014
1 parent 354392c commit d9fb1d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
16 changes: 2 additions & 14 deletions framework/src/output/NemesisOutput.C
Expand Up @@ -72,20 +72,8 @@ NemesisOutput::output(const std::string & file_base, Real time)
{
if (_out == NULL)
{
// If the underlying libmesh Mesh can be successfully cast to a
// ParallelMesh, proceed with using this output object, otherwise
// report an error.
ParallelMesh* parallel_mesh = dynamic_cast<ParallelMesh*>( &(_es.get_mesh()) );

if (parallel_mesh)
{
_out = new Nemesis_IO(*parallel_mesh);
_file_num++;
}
else
{
mooseError("Nemesis not supported when compiled without --enable-parmesh");
}
_out = new Nemesis_IO( _es.get_mesh());
_file_num++;
}

_num++;
Expand Down
8 changes: 0 additions & 8 deletions test/tests/output/output_format/tests
Expand Up @@ -3,7 +3,6 @@
type = 'CheckFiles'
input = 'output_test_nemesis.i'
check_files = 'out.e.1.0'
mesh_mode = 'PARALLEL'
[../]

[./pps_file_out_warn_test]
Expand Down Expand Up @@ -38,13 +37,6 @@
cli_args = '--dump'
[../]

[./nemesis_out_check_test]
type = 'RunException'
input = 'output_test_nemesis.i'
expect_err = 'Nemesis not supported when compiled without --enable-parmesh'
mesh_mode = 'SERIAL'
[../]

[./gnuplot_ps_out_test]
type = 'CheckFiles'
input = 'output_test_gnuplot.i'
Expand Down

0 comments on commit d9fb1d4

Please sign in to comment.