Changeset 989 for trunk/LMDZ.GENERIC/libf/phystd/setspv.F90
- Timestamp:
- Jun 14, 2013, 9:17:44 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/setspv.F90
r789 r989 44 44 45 45 real*8 STELLAR(L_NSPECTV) 46 real*8 sum 46 real*8 sum, dummy 47 47 48 48 !! used to count lines 49 integer :: nb= -1 !because first line is not an actual value49 integer :: nb=0 50 50 integer :: ierr=0 51 51 … … 72 72 ! check that the file contains the right number of bands 73 73 open(131,file=file_path,form='formatted') 74 read(131,*,iostat=ierr) file_entries 74 75 do while (ierr==0) 75 read(131,*,iostat=ierr) file_entries76 read(131,*,iostat=ierr) dummy 76 77 if (ierr==0) nb=nb+1 77 78 enddo 78 79 close(131) 80 79 81 write(*,*) 'setspv: L_NSPECTV = ',L_NSPECTV, 'in the model ' 80 82 write(*,*) ' there are ',nb, 'entries in ',TRIM(file_path)
Note: See TracChangeset
for help on using the changeset viewer.