-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmopac.h
56 lines (41 loc) · 1.17 KB
/
mopac.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef MOPAC_H
#define MOPAC_H
#include "stringtools.h"
#include "pTable.h"
#include "icoord.h"
class Mopac {
private:
int natoms;
int natomsmax;
int* anumbers;
string* anames;
int nfrz; //total frozen atoms
int nfrz0; //total "moved" frozen atoms
int* frzlist;
int* frzlistb;
void energy_header(ofstream& inpfile);
void opt_header(ofstream& inpfile);
void write_ic_input(ofstream& inpfile, int anum, ICoord icoords);
public:
double sp_energy(string filename);
double opt();
double opt(string filename);
double opt(string filename, ICoord icoords);
void opt_write();
void opt_write(string filename);
void opt_write(string filename, ICoord icoords);
double read_output(string filename);
void xyz_read(string filename);
void xyz_read_aux(string filename);
void xyz_save(string filename);
void alloc(int natoms);
void init(int natoms, int* anumbers, string* anames, double* xyz);
void reset(int natoms, int* anumbers, string* anames, double* xyz);
void freemem();
void freeze(int* frzlist, int nfrz, int nfrz0);
double energy0;
double energy;
double* xyz0;
double* xyz;
};
#endif