1
0
Fork 0
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:
Oliver Hahn 2013-08-23 08:11:41 -07:00
parent 6e785f642d
commit 7db63aba4a

View file

@ -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