-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.h
More file actions
36 lines (28 loc) · 1.47 KB
/
main.h
File metadata and controls
36 lines (28 loc) · 1.47 KB
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
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <sys/stat.h>
#include "utils.h"
#include "mopac.h"
#include "xtb.h"
#include "stringtools.h"
#include "align.h"
#include <openbabel/mol.h>
#include <openbabel/obconversion.h>
#include <openbabel/math/align.h>
using namespace std;
using namespace OpenBabel;
void xyz_read(int natoms, string* anames, double* coords, string xyzfile);
void xyz_read_last(int natoms1, double* coords, string xyzfile);
int get_natoms(string filename);
int get_charge(string filename);
void get_all_xyz(int natoms, string* anames, vector<double*> &xyzs, string xyzfile);
int get_unique_conf(int nstruct, int* unique);
void align_and_opt(int natoms1, int natoms2, string* anames, string* anamesm, string* anamest, int* anumbers, int* anumbersm, int charget, int nstruct, bool* unique, vector<double*> xyzall, double* xyzm);
void write_all_xyz(int natoms, string* anames, double* E, vector<double*> xyzs, string xyzfile_string);
void write_all_xyz(int natoms, string* anames, int nstruct, double* E, double** xyzs, string xyzfile_string);
void write_gsm(int natoms, string* anames, int charge, int nstruct, double* E, double** xyzs, int nadd, int* adds);
void do_gsm(int nstruct);
void procedure_1(string xyzfile, string targetfile);
void procedure_2(int nconf, string xyzfile, string targetfile);
void check_bonding(int nstruct, ICoord ic1, int natoms1, string* anames, int* anumbers, vector<double*> xyzalla, bool* unique);