trial for gen_rand
authorAdam Sieradzan <adasko@piasek4.chem.univ.gda.pl>
Tue, 12 Nov 2019 11:27:02 +0000 (12:27 +0100)
committerAdam Sieradzan <adasko@piasek4.chem.univ.gda.pl>
Tue, 12 Nov 2019 11:27:02 +0000 (12:27 +0100)
source/unres/MD.F90

index de0c4ab..c902d0b 100644 (file)
         if (potEcomp(0).gt.0.99e18 .or. isnan(potEcomp(0)).gt.0) then
           d_time=d_time/10.0
 !          write (iout,*) "Tu jest problem",potEcomp(0),d_time
+          call gen_rand_conf(1,*335)
+          cycle
+  335     write(iout,*) "Failed genrand"
           cycle
         endif
 ! end change