mirror of
https://github.com/cosmo-sims/MUSIC.git
synced 2024-09-19 17:03:46 +02:00
fixes the missing 'exit' in arepo plugin. now plugin (as ENZO and generic) is simply unavailable
when HDF5 is not present
This commit is contained in:
parent
6e785f642d
commit
7db63aba4a
1 changed files with 1 additions and 16 deletions
|
@ -8,22 +8,7 @@
|
|||
* Plugin: Dylan Nelson (dnelson@cfa.harvard.edu)
|
||||
*/
|
||||
|
||||
#ifndef HAVE_HDF5
|
||||
|
||||
#include "output.hh"
|
||||
|
||||
class arepo_output_plugin : public output_plugin
|
||||
{
|
||||
public:
|
||||
arepo_output_plugin( config_file& cf ) : output_plugin( cf )
|
||||
{
|
||||
std::cerr << "\n Arepo output requires HAVE_HDF5 (otherwise use gadget2 format)!\n\n";
|
||||
exit(0);
|
||||
}
|
||||
~arepo_output_plugin() { }
|
||||
};
|
||||
|
||||
#else
|
||||
#ifdef HAVE_HDF5
|
||||
|
||||
#define GAS_PARTTYPE 0
|
||||
#define HIGHRES_DM_PARTTYPE 1
|
||||
|
|
Loading…
Reference in a new issue