Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/libmess/crossrate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,8 @@ void CrossRate::MultiArray::run_traj ()
<< ", is smaller than the reactive energy: "
<< "decrease the reactive energy or change the transition state dividing surface\n";

IO::log.flush();

throw Error::Run();
}

Expand Down Expand Up @@ -1458,9 +1460,12 @@ int CrossRate::MultiArray::_sample (iterator mit, const std::set<DivSur::face_t
//
<< " kcal/mol, is lower than the reactive energy, " << reactive_energy() / Phys_const::kcal << "\n";

if(itemp)
if(itemp) {
//
IO::log.flush();

throw Error::Run();
}

int isnew = 0;

Expand Down Expand Up @@ -3150,6 +3155,8 @@ bool CrossRate::MultiArray::_work ()
//
std::cerr << funame << "reactive transition pair is not properly defined\n";

IO::log.flush();

throw Error::Init();
}

Expand Down Expand Up @@ -3383,6 +3390,8 @@ CrossRate::MultiArray::MultiArray(const DivSur::MultiSur& ms, Potential::Wrap po
//
std::cerr << funame << "too many failures for " << mit - begin() << "-th surface\n";

IO::log.flush();

throw Error::Run();
}

Expand All @@ -3392,6 +3401,8 @@ CrossRate::MultiArray::MultiArray(const DivSur::MultiSur& ms, Potential::Wrap po
//
std::cerr << funame << mit - begin() << "-th surface, " << sit->first << " facet: " <<"no flux samplings\n";

IO::log.flush();

throw Error::Run();
}//
//
Expand Down Expand Up @@ -3451,6 +3462,8 @@ CrossRate::MultiArray::MultiArray(const DivSur::MultiSur& ms, Potential::Wrap po
//
std::cerr << mit - begin() << "-th surface, " << sit->first << " facet: no potential samplings\n";

IO::log.flush();

throw Error::Run();
}

Expand All @@ -3464,6 +3477,8 @@ CrossRate::MultiArray::MultiArray(const DivSur::MultiSur& ms, Potential::Wrap po
//
<< " kcal/mol\n";

IO::log.flush();

throw Error::Run();
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/libmess/mess.hh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ namespace MasterEquation {

extern double time_propagation_interval; // time-interval between printouts

extern int with_crm_basis;

double temperature ();

double pressure ();
Expand Down
3 changes: 3 additions & 0 deletions src/libmess/mess_2d.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# define MESS_2D_HH

namespace Mess {
//
class ReactiveComplex: public Model::ChemGraph {
};

extern double energy_reference;

Expand Down
8 changes: 4 additions & 4 deletions src/mess_test.cc → src/libmess/mess_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
#include<cmath>
#include <sys/resource.h>

#include "libmess/mess.hh"
#include "libmess/key.hh"
#include "libmess/units.hh"
#include "libmess/io.hh"
#include "mess.hh"
#include "key.hh"
#include "units.hh"
#include "io.hh"


//auxiliary structures for rate constants storage and output
Expand Down
8 changes: 4 additions & 4 deletions src/molpro_sampling.cc → src/libmess/molpro_sampling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
Library General Public License for more details.
*/

#include "libmess/molpro.hh"
#include "libmess/key.hh"
#include "libmess/io.hh"
#include "libmess/system.hh"
#include "molpro.hh"
#include "key.hh"
#include "io.hh"
#include "system.hh"

#include <cstdlib>
#include <sys/stat.h>
Expand Down
8 changes: 4 additions & 4 deletions src/mpi_graph_test.cc → src/libmess/mpi_graph_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
#include<sstream>
#include<cmath>

#include "libmess/graph_mpi.hh"
#include "libmess/key.hh"
#include "libmess/units.hh"
#include "libmess/io.hh"
#include "graph_mpi.hh"
#include "key.hh"
#include "units.hh"
#include "io.hh"

int main (int argc, char* argv [])
{
Expand Down
Loading
Loading