c$Header: /weru/cvs/weps/weps.src/manage/dooper.for,v 1.1.1.1.4.2 2000-05-02 15:40:59 fredfox Exp $ c c subroutine dooper (sr) c c + + + PURPOSE + + + c Dooper reads in any coefficients associated with the c operation. C C Edit History C 19-Feb-99 wjr removed iunit from param C 20-Feb-99 wjr made parse of oper line fixed format c c + + + KEYWORDS + + + c tillage, operation, management c c + + + PARAMETERS AND COMMON BLOCKS + + + *$noereference include 'p1werm.inc' include 'manage/oper.inc' include 'manage/man.inc' include 'manage/mproc.inc' *$reference c c + + + ARGUMENT DECLARATIONS + + + integer sr c c + + + ARGUMENT DEFINITIONS + + + c sr - the subregion number c c + + + ACCESSED COMMON BLOCK VARIABLE DEFINITIONS + + + c odir - operation direction (degrees from NORTH) c ospeed - operation speed c + + + LOCAL VARIABLES + + + character*80 line character*1 opdumy c c + + + SUBROUTINES CALLED + + + c + + + FUNCTIONS CALLED + + + integer lentrm c c + + + DATA INITIALIZATIONS + + + c c + + + END SPECIFICATIONS + + + C C write(*,*) '*>dooper line |', mtbl(mcur(sr)), '|' read(mtbl(mcur(sr)), 1001) opdumy, opcode, opname 1001 format(a1,1x,i2,1x,a) if( (opcode.eq.0).and.(mcount(sr).gt.0) ) then opskip = 1 print*, 'SR',sr,' Skipping operation:', & opcode,' ',opname else print*, 'SR',sr,' Processing operation:', & opcode,' ',opname end if if( opcode.eq.1 ) then c get additional line of data mcur(sr) = mcur(sr) + 1 line = mtbl(mcur(sr)) c read tillage speed and direction read(line(2:lentrm(line)), *, err=901) ospeed, odir, & ostdspeed, ominspeed, omaxspeed end if c return C Error stops 901 write(*,9901) mtbl(mcur(sr)) 9901 format ('DOOPER: Error reading line ->', a) stop 1003 end