+c WriteBankHistory subroutine
+c ======================================================================
+c Writes CSA BANK History to file
+c ----------------------------------------------------------------------
+ subroutine WriteBankHistory(b)
+ include 'io.inc'
+ include 'common.inc'
+ real*8,dimension(banksize,21) :: b
+ character*250 :: tmptext
+ character*250 :: header
+
+
+ header="# WLONG WSCP WELEC WBOND WANG WSC&
+ &LOC WTOR WTORD WCORRH WCORR4 WCORR5 WCORR6 &
+ &WEL_LOC WTURN3 WTURN4 WTURN6 WVDWPP WHPB WSCCO&
+ &R FFV FITNESS"
+
+ call write2log("Writing Bank history to file "//obankhfn)
+ open(obankh, file = obankhfn)
+ write(iobank, "(A)") trim(adjustl(header))
+
+ do i=1,banksize
+ write(obankh,'(19F10.5,E15.7,F10.5)') (b(i,j),j=1,21)
+ write(tmptext,'(19F10.5,E15.7,F10.5)') (b(i,j),j=1,21)
+ call write2log(trim(tmptext))
+ enddo
+ close(iobank)
+ end subroutine
+
+c
+c ======================================================================