Changeset 3743 for palm/trunk/SOURCE
- Timestamp:
- Feb 15, 2019 8:50:40 AM (6 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/radiation_model_mod.f90
r3705 r3743 28 28 ! ----------------- 29 29 ! $Id$ 30 ! added read/write number of MRT factors to the respective routines 31 ! 32 ! 3705 2019-01-29 19:56:39Z suehring 30 33 ! Make variables that are sampled in virtual measurement module public 31 34 ! … … 8293 8296 INTEGER(iwp) :: npcbl_from_file = 0 8294 8297 INTEGER(iwp) :: nsurfl_from_file = 0 8298 INTEGER(iwp) :: nmrtbl_from_file = 0 8295 8299 8296 8300 DO i = 0, io_blocks-1 … … 8329 8333 8330 8334 ! 8331 !-- read nsvfl, ncsfl, nsurfl 8335 !-- read nsvfl, ncsfl, nsurfl, nmrtf 8332 8336 READ ( 88 ) nsvfl, ncsfl, nsurfl_from_file, npcbl_from_file, & 8333 ndsidir_from_file 8337 ndsidir_from_file, nmrtbl_from_file, nmrtf 8334 8338 8335 8339 IF ( nsvfl < 0 .OR. ncsfl < 0 ) THEN … … 8363 8367 CALL message( 'radiation_read_svf', 'PA0494', 1, 2, 0, 6, 0 ) 8364 8368 ENDIF 8369 IF ( nmrtbl_from_file /= nmrtbl ) THEN 8370 WRITE( message_string, * ) 'nmrtbl from SVF file does not ', & 8371 'match calculated nmrtbl from ', & 8372 'radiation_interaction_init' 8373 CALL message( 'radiation_read_svf', 'PA0494', 1, 2, 0, 6, 0 ) 8374 ELSE 8375 WRITE(message_string,*) ' Number of nmrtf to read ', nmrtf 8376 CALL location_message( message_string, .TRUE. ) 8377 ENDIF 8365 8378 8366 8379 ! … … 8379 8392 8380 8393 ! 8381 !-- The allocation of svf, svfsurf, csf and csfsurf happens in routine8382 !-- radiation_calc_svf which is not called if the program enters8383 !-- radiation_read_svf. Therefore these arrays has to allocate in the8384 !-- following8394 !-- The allocation of svf, svfsurf, csf, csfsurf, mrtf, mrtft, and 8395 !-- mrtfsurf happens in routine radiation_calc_svf which is not 8396 !-- called if the program enters radiation_read_svf. Therefore 8397 !-- these arrays has to allocate in the following 8385 8398 IF ( nsvfl > 0 ) THEN 8386 8399 ALLOCATE( svf(ndsvf,nsvfl) ) … … 8395 8408 READ(88) csf 8396 8409 READ(88) csfsurf 8410 ENDIF 8411 8412 IF ( nmrtbl > 0 ) THEN 8413 ALLOCATE ( mrtf(nmrtf) ) 8414 ALLOCATE ( mrtft(nmrtf) ) 8415 ALLOCATE ( mrtfsurf(2,nmrtf) ) 8416 READ(88) mrtf 8417 READ(88) mrtft 8418 READ(88) mrtfsurf 8397 8419 ENDIF 8398 8420 … … 8429 8451 8430 8452 WRITE ( 89 ) rad_version 8431 WRITE ( 89 ) nsvfl, ncsfl, nsurfl, npcbl, ndsidir 8453 WRITE ( 89 ) nsvfl, ncsfl, nsurfl, npcbl, ndsidir, nmrtbl, nmrtf 8432 8454 IF ( nsurfl > 0 ) THEN 8433 8455 WRITE ( 89 ) skyvf … … 8446 8468 WRITE ( 89 ) csfsurf 8447 8469 ENDIF 8448 8470 IF ( nmrtbl > 0 ) THEN 8471 WRITE ( 89 ) mrtf 8472 WRITE ( 89 ) mrtft 8473 WRITE ( 89 ) mrtfsurf 8474 ENDIF 8449 8475 ! 8450 8476 !-- Close binary file -
palm/trunk/SOURCE/urban_surface_mod.f90
r3730 r3743 31 31 ! convert the file back to unix format 32 32 ! 33 ! $Id$33 ! 3730 2019-02-11 11:26:47Z moh.hefny 34 34 ! Formatting and clean-up (rvtils) 35 35 !
Note: See TracChangeset
for help on using the changeset viewer.