Variable assignment, do loops, and put statements

Seth Olsen seth at spawn.scs.uiuc.edu
Mon Mar 24 18:49:16 GMT 2003



I have been attempting to run a deck that has the following loosely outlined code

do i=7,9
do j=9,1,-1

!***electronic structure code outputting natural 
!***orbitals to record 2141.1 


filename='ac22s2s10_hwag$i$j'
moldenfile='$filename.molden'
orbfile=$filename.orb'

put,molden,$moldenfile,orb,2141.2
matrop
load,orbitals,orb,2141.2
write,orbitals,$orbfile,new

enddo
enddo


However, when I run the code the names of the written files include spaces where i did not intend them to be for example, the molden file is 'ac22s2s1i0_hwag12  .molden' , with spaces before the suffix that confuse the shell I'm working with and cause me stress.  Does any body know what I'm doing wrong?  Thanks.

Seth Olsen
solsen at uiuc.edu







More information about the Molpro-user mailing list