Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/biology/babel/files/patch-wrmm3.c
18160 views
1
--- wrmm3.c.orig Tue Jan 21 09:53:02 1997
2
+++ wrmm3.c Wed Sep 4 16:00:23 2002
3
@@ -33,14 +33,17 @@
4
int METHOD; /* 0 no cojugated pi system, 1 if conjugated pi system */
5
int N; /* #of atoms */
6
int IPRINT; /* Controls amount of printout */
7
+ int MDERIV; /* Optimization termination; 0 for geometry, 1 for energy */
8
int NSTR; /* Restricted motion data */
9
int INIT; /* Minimize energy */
10
int NCONST; /* Read in new constants ? */
11
double TMAX; /* Max time */
12
13
+ int KFIXTYP; /* Atom type check; 0 for yes, 1 for no */
14
int NCON; /* Number of connected atoms */
15
int NATTACH; /*Number of attached atoms */
16
- double DEL; /* Termianation of geometry optimization */
17
+ double DEL; /* Termination of geometry optimization, convergence limit */
18
+ int ISPEED; /* Speed up minimization of crude structures, 0 is no, 1 is yes */
19
int NSYMM;/* Number of symmetry matrices */
20
int NX; /* Number of coordiante calcualtions or replacement cards */
21
int NROT; /* Reorient */
22
@@ -62,17 +65,20 @@
23
strcpy(ID,OutfileName);
24
25
/*------ CARD 1 -------*/
26
- METHOD = 1;
27
+ METHOD = 0;
28
N = Atoms;
29
IPRINT = 3;
30
if (isdigit(OutputKeywords[0]))
31
IPRINT = atoi(OutputKeywords);
32
+ MDERIV = 1;
33
NSTR = 0;
34
INIT = 0;
35
- NCONST = 0;
36
+ NCONST = 1;
37
TMAX = 999.0;
38
/*------ CARD 2 -------*/
39
+ KFIXTYP = 0;
40
DEL = 0.00008;
41
+ ISPEED = 0;
42
NCON = connections;
43
NATTACH = attachments;
44
NSYMM = 0;
45
@@ -86,22 +92,23 @@
46
NDRIVE = 0;
47
48
49
- fprintf(file1,"%-60s%d%4d %d %d %d %d%-5.0f\n",
50
+ fprintf(file1,"%-60s%1d%4d%2d%1d%2d%2d%3d%5.0f\n",
51
ID,
52
METHOD,
53
N,
54
IPRINT,
55
+ MDERIV,
56
NSTR,
57
INIT,
58
NCONST,
59
TMAX);
60
61
- fprintf(file1,"%1d%4d%5s%4.5f%8s%5d%5d%5d%5d%5d%5d%5d%5d%10d%5d\n",
62
- 0,
63
+ fprintf(file1,"%1d%4d%5s%10.7f%5d%5d%5d%5d%5d%5d%5d%5d%5d%5s%5d%5d\n",
64
+ KFIXTYP,
65
NCON,
66
"",
67
DEL,
68
- "",
69
+ ISPEED,
70
NATTACH,
71
NSYMM,
72
NX,
73
@@ -110,6 +117,7 @@
74
NDC,
75
NCALC,
76
HFORM,
77
+ "",
78
MVDW,
79
NDRIVE);
80
81
@@ -145,7 +153,7 @@
82
get_output_type(i,"MM2",Type(i),temp_type,all_caps);
83
type_name = atoi(temp_type);
84
type_name = update_mm2_types(mol,i,type_name);
85
- fprintf(file1," %8.5f %8.5f %8.5f%5d(%3d)\n",
86
+ fprintf(file1,"%10.5f%10.5f%10.5f%5d(%3d)\n",
87
X(i),
88
Y(i),
89
Z(i),
90
91