Changeset 4819 for palm/trunk/SOURCE/netcdf_data_input_mod.f90
- Timestamp:
- Dec 10, 2020 12:57:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/netcdf_data_input_mod.f90
r4807 r4819 24 24 ! ----------------- 25 25 ! $Id$ 26 ! Check if netCDF file actually exists before opening it for reading. 27 ! 28 ! 4807 2020-12-02 21:02:28Z gronemeier 26 29 ! Deactivated reading of building_obstruction_full due to improper implementation (conflicts with 27 30 ! building_obstruction_f and it is also not used anywhere else in the code). … … 3589 3592 SUBROUTINE open_read_file( filename, id ) 3590 3593 3594 USE control_parameters, & 3595 ONLY: message_string 3596 3591 3597 USE pegrid 3592 3598 3593 3599 IMPLICIT NONE 3594 3600 3595 CHARACTER (LEN=*), INTENT(IN) :: filename !< filename 3596 INTEGER(iwp), INTENT(INOUT) :: id !< file id 3601 CHARACTER (LEN=*), INTENT(IN) :: filename !< filename 3602 INTEGER(iwp), INTENT(INOUT) :: id !< file id 3603 LOGICAL :: file_exists !< true if file exists 3597 3604 3598 3605 #if defined( __netcdf ) 3606 ! 3607 !-- Check if requested file exists 3608 INQUIRE( FILE=filename, EXIST=file_exists ) 3609 3610 IF ( .NOT. file_exists ) THEN 3611 WRITE( message_string, * ) 'Required input file "' // filename // '" does not exist!' 3612 CALL message( 'open_read_file', 'PA0516', 2, 2, 0, 6, 1 ) 3613 ENDIF 3599 3614 3600 3615 #if defined( __netcdf4_parallel )
Note: See TracChangeset
for help on using the changeset viewer.