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