Skip to content

Commit d9299ba

Browse files
authored
Merge pull request #86 from ygeorgi/master
allow crm basis
2 parents 331980d + c1d5acb commit d9299ba

11 files changed

Lines changed: 878 additions & 13 deletions

File tree

src/libmess/crossrate.cc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,8 @@ void CrossRate::MultiArray::run_traj ()
13341334
<< ", is smaller than the reactive energy: "
13351335
<< "decrease the reactive energy or change the transition state dividing surface\n";
13361336

1337+
IO::log.flush();
1338+
13371339
throw Error::Run();
13381340
}
13391341

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

1461-
if(itemp)
1463+
if(itemp) {
14621464
//
1465+
IO::log.flush();
1466+
14631467
throw Error::Run();
1468+
}
14641469

14651470
int isnew = 0;
14661471

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

3158+
IO::log.flush();
3159+
31533160
throw Error::Init();
31543161
}
31553162

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

3393+
IO::log.flush();
3394+
33863395
throw Error::Run();
33873396
}
33883397

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

3404+
IO::log.flush();
3405+
33953406
throw Error::Run();
33963407
}//
33973408
//
@@ -3451,6 +3462,8 @@ CrossRate::MultiArray::MultiArray(const DivSur::MultiSur& ms, Potential::Wrap po
34513462
//
34523463
std::cerr << mit - begin() << "-th surface, " << sit->first << " facet: no potential samplings\n";
34533464

3465+
IO::log.flush();
3466+
34543467
throw Error::Run();
34553468
}
34563469

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

3480+
IO::log.flush();
3481+
34673482
throw Error::Run();
34683483
}
34693484
}

src/libmess/mess.hh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ namespace MasterEquation {
126126

127127
extern double time_propagation_interval; // time-interval between printouts
128128

129+
extern int with_crm_basis;
130+
129131
double temperature ();
130132

131133
double pressure ();

src/libmess/mess_2d.hh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# define MESS_2D_HH
33

44
namespace Mess {
5+
//
6+
class ReactiveComplex: public Model::ChemGraph {
7+
};
58

69
extern double energy_reference;
710

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
#include<cmath>
2020
#include <sys/resource.h>
2121

22-
#include "libmess/mess.hh"
23-
#include "libmess/key.hh"
24-
#include "libmess/units.hh"
25-
#include "libmess/io.hh"
22+
#include "mess.hh"
23+
#include "key.hh"
24+
#include "units.hh"
25+
#include "io.hh"
2626

2727

2828
//auxiliary structures for rate constants storage and output
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
Library General Public License for more details.
1414
*/
1515

16-
#include "libmess/molpro.hh"
17-
#include "libmess/key.hh"
18-
#include "libmess/io.hh"
19-
#include "libmess/system.hh"
16+
#include "molpro.hh"
17+
#include "key.hh"
18+
#include "io.hh"
19+
#include "system.hh"
2020

2121
#include <cstdlib>
2222
#include <sys/stat.h>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
#include<sstream>
2121
#include<cmath>
2222

23-
#include "libmess/graph_mpi.hh"
24-
#include "libmess/key.hh"
25-
#include "libmess/units.hh"
26-
#include "libmess/io.hh"
23+
#include "graph_mpi.hh"
24+
#include "key.hh"
25+
#include "units.hh"
26+
#include "io.hh"
2727

2828
int main (int argc, char* argv [])
2929
{

0 commit comments

Comments
 (0)