Skip to content

Commit a953878

Browse files
committed
Made the corresponding adjustments in the lib files and in converters
1 parent f7aefb8 commit a953878

10 files changed

Lines changed: 21 additions & 64 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ SET(Boost_USE_STATIC_LIBS=OFF)
6969
SET(Boost_USE_MULTITHREADED=OFF)
7070
SET(Boost_USE_STATIC_RUNTIME=OFF)
7171

72-
FIND_PACKAGE(Boost 1.74.0 REQUIRED COMPONENTS regex python${LIBRA_Python3_VERSION})
72+
FIND_PACKAGE(Boost 1.82.0 REQUIRED COMPONENTS regex python${LIBRA_Python3_VERSION})
7373
IF(Boost_FOUND)
7474
INCLUDE_DIRECTORIES("${Boost_INCLUDE_DIRS}")
7575
ENDIF()

src/CMakeLists.txt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,6 @@ MESSAGE("Going into subdirectory opt...")
110110
ADD_SUBDIRECTORY("opt")
111111

112112

113-
MESSAGE("Going into subdirectory pot...")
114-
ADD_SUBDIRECTORY("pot")
115-
116-
117-
MESSAGE("Going into subdirectory forcefield...")
118-
ADD_SUBDIRECTORY("forcefield")
119113

120114

121115

@@ -131,9 +125,6 @@ ADD_SUBDIRECTORY("basis_setups")
131125

132126

133127

134-
MESSAGE("Going into subdirectory atomistic...")
135-
ADD_SUBDIRECTORY("atomistic")
136-
137128

138129

139130
MESSAGE("Going into subdirectory nhamiltonian...")
@@ -160,12 +151,6 @@ MESSAGE("Going into subdirectory converters...")
160151
ADD_SUBDIRECTORY("converters")
161152

162153

163-
MESSAGE("Going into subdirectory scripts...")
164-
ADD_SUBDIRECTORY("scripts")
165-
166-
MESSAGE("Going into subdirectory qchem_tools...")
167-
ADD_SUBDIRECTORY("qchem_tools")
168-
169154

170155
MESSAGE("Going into subdirectory solvers...")
171156
ADD_SUBDIRECTORY("solvers")
@@ -216,9 +201,6 @@ endif()
216201
TARGET_LINK_LIBRARIES(libra_core_stat
217202
integrators_stat
218203
solvers_stat
219-
qchem_tools_stat
220-
atomistic_stat
221-
scripts_stat
222204
converters_stat
223205
montecarlo_stat
224206
fgr_stat
@@ -231,9 +213,7 @@ TARGET_LINK_LIBRARIES(libra_core_stat
231213
control_parameters_stat
232214
nhamiltonian_stat
233215
util_stat
234-
forcefield_stat
235216
opt_stat
236-
pot_stat
237217
cell_stat
238218
chemobjects_stat
239219
rigidbody_stat

src/converters/converters.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace liblibra{
1717

1818
namespace libconverters{
1919

20-
20+
/*
2121
void system_to_nuclear(System& syst, Nuclear& nucl){
2222
2323
// Simple data converter - no object creation (nor reduction of dimension)
@@ -45,11 +45,6 @@ void system_to_nuclear(System& syst, Nuclear& nucl){
4545
nucl.f[3*i+1] = syst.Atoms[i].Atom_RB.rb_force.y;
4646
nucl.f[3*i+2] = syst.Atoms[i].Atom_RB.rb_force.z;
4747
48-
/*
49-
nucl.f[3*i+0] = 0;
50-
nucl.f[3*i+1] = 1;
51-
nucl.f[3*i+2] = 2;
52-
*/
5348
5449
}// for i
5550
@@ -84,7 +79,7 @@ void nuclear_to_system(Nuclear& nucl,System& syst){
8479
8580
}// for i
8681
}
87-
82+
*/
8883

8984
void IndexError() { PyErr_SetString(PyExc_IndexError, "Index out of range"); }
9085
void KeyError() { PyErr_SetString(PyExc_KeyError, "Key not found"); }

src/converters/converters.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ using namespace libdyn;
3333
namespace libconverters{
3434

3535

36+
/*
3637
void system_to_nuclear(System& syst, Nuclear& nucl);
3738
void nuclear_to_system(Nuclear& nucl, System& syst);
3839
3940
void system_to_vector_q(System& syst, vector<double>& q);
4041
void system_to_vector_p(System& syst, vector<double>& p);
42+
*/
4143

4244

4345

src/converters/libconverters.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ namespace libconverters{
3434

3535
void export_converters_objects(){
3636

37-
void (*expt_system_to_nuclear_v1)(System& syst, Nuclear& nucl) = &system_to_nuclear;
38-
void (*expt_nuclear_to_system_v1)(Nuclear& nucl, System& syst) = &nuclear_to_system;
37+
//void (*expt_system_to_nuclear_v1)(System& syst, Nuclear& nucl) = &system_to_nuclear;
38+
//void (*expt_nuclear_to_system_v1)(Nuclear& nucl, System& syst) = &nuclear_to_system;
3939

4040

41-
def("system_to_nuclear", expt_system_to_nuclear_v1);
42-
def("nuclear_to_system", expt_nuclear_to_system_v1);
41+
// def("system_to_nuclear", expt_system_to_nuclear_v1);
42+
// def("nuclear_to_system", expt_nuclear_to_system_v1);
4343

4444

4545
vector<int> (*expt_Py2Cpp_v1)(boost::python::list x) = &Py2Cpp;

src/dyn/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ ADD_SUBDIRECTORY("thermostat")
1616
MESSAGE("Going into subdirectory barostat...")
1717
ADD_SUBDIRECTORY("barostat")
1818

19-
MESSAGE("Going into subdirectory wfcgrid...")
20-
ADD_SUBDIRECTORY("wfcgrid")
21-
22-
MESSAGE("Going into subdirectory wfcgrid2...")
23-
ADD_SUBDIRECTORY("wfcgrid2")
2419

2520
#MESSAGE("Going into subdirectory ensemble...")
2621
#ADD_SUBDIRECTORY("ensemble")
@@ -65,8 +60,6 @@ TARGET_LINK_LIBRARIES(dyn
6560
heom
6661
qtag
6762
gwp
68-
wfcgrid
69-
wfcgrid2
7063
barostat thermostat
7164
electronic
7265
nuclear
@@ -78,8 +71,6 @@ TARGET_LINK_LIBRARIES(dyn_stat
7871
heom_stat
7972
qtag_stat
8073
gwp_stat
81-
wfcgrid_stat
82-
wfcgrid2_stat
8374
barostat_stat thermostat_stat
8475
electronic_stat
8576
nuclear_stat

src/dyn/libdyn.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ using namespace libelectronic;
3737
//using namespace librigidbody;
3838
using namespace libthermostat;
3939
using namespace libbarostat;
40-
using namespace libwfcgrid;
41-
using namespace libwfcgrid2;
40+
//using namespace libwfcgrid;
41+
//using namespace libwfcgrid2;
4242
//using namespace libensemble;
4343
using namespace libgwp;
4444
using namespace libheom;
@@ -1025,8 +1025,8 @@ void export_Dyn_objects(){
10251025
export_Electronic_objects();
10261026
export_Thermostat_objects();
10271027
export_Barostat_objects();
1028-
export_Wfcgrid_objects();
1029-
export_Wfcgrid2_objects();
1028+
//export_Wfcgrid_objects();
1029+
//export_Wfcgrid2_objects();
10301030
//export_Ensemble_objects();
10311031
export_gwp_objects();
10321032
export_heom_objects();

src/dyn/libdyn.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#include "electronic/libelectronic.h"
2626
#include "thermostat/libthermostat.h"
2727
#include "barostat/libbarostat.h"
28-
#include "wfcgrid/libwfcgrid.h"
29-
#include "wfcgrid2/libwfcgrid2.h"
28+
//#include "wfcgrid/libwfcgrid.h"
29+
//#include "wfcgrid2/libwfcgrid2.h"
3030
//#include "ensemble/libensemble.h"
3131
#include "gwp/libgwp.h"
3232
#include "heom/libheom.h"

src/liblibra_core.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,19 @@ using namespace librigidbody;
5151

5252
using namespace libchemobjects;
5353
using namespace libcell;
54-
using namespace libpot;
55-
using namespace libforcefield;
5654

5755
using namespace libcontrol_parameters;
5856
using namespace libnhamiltonian;
5957

60-
using namespace libatomistic;
6158
using namespace libmodels;
6259

6360
using namespace libfgr;
6461
using namespace libivr;
6562
using namespace libdyn;
6663

6764
using namespace libconverters;
68-
using namespace libscripts;
69-
using namespace libqchem_tools;
65+
//using namespace libscripts;
66+
//using namespace libqchem_tools;
7067
using namespace libsolvers;
7168
using namespace libintegrators;
7269

@@ -110,15 +107,11 @@ void export_libra_core_objects(){
110107
export_chemobjects_objects();
111108
export_Cell_objects();
112109

113-
export_Pot_objects();
114-
export_forcefield_objects();
115-
116110

117111
export_Control_Parameters_objects();
118112
export_Model_Parameters_objects();
119113
export_basis_setups_objects();
120114

121-
export_atomistic_objects();
122115

123116
export_nhamiltonian_objects();
124117

@@ -128,8 +121,8 @@ void export_libra_core_objects(){
128121
export_Dyn_objects();
129122

130123
export_converters_objects();
131-
export_scripts_objects();
132-
export_qchem_tools_objects();
124+
// export_scripts_objects();
125+
// export_qchem_tools_objects();
133126

134127
export_solvers_objects();
135128

src/liblibra_core.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,13 @@
4747
#include "chemobjects/libchemobjects.h"
4848

4949
#include "cell/libcell.h"
50-
#include "pot/libpot.h"
51-
#include "forcefield/libforcefield.h"
5250

5351
#include "control_parameters/libcontrol_parameters.h"
5452
#include "model_parameters/libmodel_parameters.h"
5553
#include "basis_setups/libbasis_setups.h"
5654
#include "libint2_wrappers/liblibint2_wrappers.h"
5755

5856

59-
#include "atomistic/libatomistic.h"
60-
6157
#include "nhamiltonian/libnhamiltonian.h"
6258

6359
#include "fgr/libfgr.h"
@@ -67,8 +63,8 @@
6763
#include "dyn/libdyn.h"
6864

6965
#include "converters/libconverters.h"
70-
#include "scripts/libscripts.h"
71-
#include "qchem_tools/libqchem_tools.h"
66+
//#include "scripts/libscripts.h"
67+
//#include "qchem_tools/libqchem_tools.h"
7268
#include "solvers/libsolvers.h"
7369

7470
#include "integrators/libintegrators.h"

0 commit comments

Comments
 (0)