changes in wham
[unres.git] / source / unres / src_MD-M / geomout.F
index 0b711bd..23246df 100644 (file)
@@ -425,6 +425,7 @@ c-----------------------------------------------------------------
       include 'COMMON.SBRIDGE'
       include 'COMMON.DISTFIT'
       include 'COMMON.MD'
+      include 'COMMON.REMD'
       include 'COMMON.SETUP'
       integer itime
       double precision energia(0:n_ene)
@@ -470,7 +471,7 @@ C          print *,'A CHUJ',potEcomp(23)
        if (refstr) then
          call rms_nac_nnc(rms,frac,frac_nn,co,.false.)
           write (line1,'(i10,f15.2,3f12.3,f7.2,2f6.3,f12.3,f10.1,2f8.2,
-     &    f9.2,i5,$)')
+     &    f9.3,i5,$)')
      &          itime,totT,EK,potE,totE,
      &          rms,frac,frac_nn,kinetic_T,t_bath,gyrate(),
      &          distance,potEcomp(23),me
@@ -509,6 +510,12 @@ C          print *,'A CHUJ',potEcomp(23)
            line2=' '
         endif
         if (print_compon) then
+          if(itime.eq.0) then
+           write(format,'(a1,a4,a1,a4,a10)') "(",format1,",",format2,
+     &                                                     ",20a12)"
+           write (istat,format) "#","",
+     &      (ename(print_order(i)),i=1,nprint_ene)
+          endif
           write(format,'(a1,a4,a1,a4,a10)') "(",format1,",",format2,
      &                                                     ",20f12.3)"
           write (istat,format) line1,line2,