Patch to allow internal coordinates for icosahedral clusters

From NWChem

Viewed 1402 times, With a total of 3 Posts
Jump to: navigation, search

Just Got Here
Threads 1
Posts 2
Using NWChem for calculations on derivatives of polyhedral boron hydrides I found that the program always failed to construct redundant internal coordinates for icosahedral clusters. It complained about the number of the internal coordinates generated being absurdly large. The limit in geom/geom_hnd.F seems arbitrary to me, when I changed it arbitrarily two times up, NWChem started to generate internal coordinates for my molecules well (and now allows me, for example, to choose an internal coordinate to fix in geometry optimisation).


--- nwchem.orig/src/geom/geom_hnd.F     2014-09-10 18:11:03.000000000 +0000
+++ nwchem/src/geom/geom_hnd.F  2015-01-28 16:14:38.249027101 +0000
@@ -1644,7 +1644,7 @@ c
          nlnba=3*mxlnba
          if (.not. zdone) goto 55555 ! attempt to recover
 c
-         if (nzvar .gt. 10*(max(6,3*nat-6))) then
+         if (nzvar .gt. 20*(max(6,3*nat-6))) then
 c
 c     Made a z-matrix but it is asburdly big.  Nothing yet to fix this
 c


After a cursory look into the geometry of the icosahedron to understand why was the original NWChem limit on the number of internal coordinates too small for my species and how many of them I may actually need, I did not arrive to a definetive conclusion, let alone a limit less arbitrary, but I was tempted to simplify the patch a bit:

--- nwchem.orig/src/geom/geom_hnd.F     2014-09-10 18:11:03.000000000 +0000
+++ nwchem/src/geom/geom_hnd.F  2015-01-28 16:14:38.249027101 +0000
@@ -1644,7 +1644,7 @@ c
          nlnba=3*mxlnba
          if (.not. zdone) goto 55555 ! attempt to recover
 c
-         if (nzvar .gt. 10*(max(6,3*nat-6))) then
+         if (nzvar .gt. 42*nat) then
 c
 c     Made a z-matrix but it is asburdly big.  Nothing yet to fix this
 c
Edited On 2:32:52 AM PST - Fri, Mar 6th 2015 by Hloupy.Honza

Forum Vet
Threads 7
Posts 1296
Honza
Could you post the geometry of the input file that led you to this patch?
Thanks, Edo

Just Got Here
Threads 1
Posts 2
An example icosahedral geometry
I'm sorry I reply late. This is one example of icosahedral geometry that with unpatched nwchem produces an output line
 autoz: excessive number of variables                   912                   66

geometry
B                     0.45847006     0.09952007    -1.61371950
B -0.11907656 -1.41910484 -0.89982394
B -0.32900936 1.45244385 -0.78958167
B 1.45702351 -0.76733276 -0.44061433
B 1.32803813 1.00707596 -0.36835250
B 1.27182104 0.05179579 1.11290045
B 0.16656363 1.41920724 0.89883886
B 0.38278781 -1.44351125 0.79145909
B -1.40548570 0.76956439 0.41328846
B -1.27104024 -1.00408960 0.35140414
C -1.13711151 -0.04531513 -1.03992256
C -0.39925623 -0.08751433 1.47225597
H -2.06845351 -0.07850868 -1.79589841
H -0.34327777 -2.36175069 -1.57562483
H -0.69839923 2.39891110 -1.39217871
H 2.45840856 -1.31825241 -0.74982615
H 2.23634839 1.72198408 -0.62741679
H 2.05144322 0.07499610 1.99760834
H 0.18586086 2.34217508 1.63712103
H 0.54582168 -2.40921971 1.45362371
H -2.45112869 1.20652097 0.73264132
H -2.23837960 -1.61678729 0.62618576
H -0.79258782 -0.14834777 2.60432932
H 0.63208883 0.15741171 -2.78356042
end

Forum Vet
Threads 7
Posts 1296
patch committed to the svn repository
Edited On 5:01:47 PM PST - Thu, Nov 5th 2015 by Edoapra


Forum >> NWChem's corner >> Compiling NWChem



Who's here now Members 0 Guests 1 Bots/Crawler 0


AWC's: 2.5.10 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC