@@ -761,7 +761,7 @@ end subroutine table_ccnAct
761
761
762
762
! =================================================================================================================
763
763
! Rain collecting graupel (and inverse). Explicit CE integration.
764
- subroutine qr_acr_qg_par (NRHGtable )
764
+ subroutine qr_acr_qg_par (NRHGtable , qrqg_file )
765
765
766
766
implicit none
767
767
@@ -778,19 +778,19 @@ subroutine qr_acr_qg_par(NRHGtable)
778
778
LOGICAL force_read_thompson, write_thompson_tables
779
779
LOGICAL lexist,lopen
780
780
INTEGER good,ierr
781
+ character (len=* ), intent (in ) :: qrqg_file
781
782
782
783
force_read_thompson = .false.
783
784
write_thompson_tables = .false.
784
785
! +---+
785
786
786
-
787
787
good = 0
788
- INQUIRE (FILE= qr_acr_qg_file , EXIST= lexist)
788
+ INQUIRE (FILE= qrqg_file , EXIST= lexist)
789
789
#ifdef MPI
790
790
call MPI_BARRIER(mpi_communicator,ierr)
791
791
#endif
792
792
IF ( lexist ) THEN
793
- OPEN (63 ,file= qr_acr_qg_file ,form= " unformatted" ,err= 1234 )
793
+ OPEN (63 ,file= qrqg_file ,form= " unformatted" ,err= 1234 )
794
794
! sms$serial begin
795
795
READ (63 ,err= 1234 ) tcg_racg
796
796
READ (63 ,err= 1234 ) tmr_racg
@@ -805,13 +805,13 @@ subroutine qr_acr_qg_par(NRHGtable)
805
805
INQUIRE (63 ,opened= lopen)
806
806
IF (lopen) THEN
807
807
IF ( force_read_thompson ) THEN
808
- write (0 ,* ) " Error reading " // qr_acr_qg_file // " Aborting because force_read_thompson is .true."
808
+ write (0 ,* ) " Error reading " // qrqg_file // " Aborting because force_read_thompson is .true."
809
809
return
810
810
ENDIF
811
811
CLOSE (63 )
812
812
ELSE
813
813
IF ( force_read_thompson ) THEN
814
- write (0 ,* ) " Error opening " // qr_acr_qg_file // " Aborting because force_read_thompson is .true."
814
+ write (0 ,* ) " Error opening " // qrqg_file // " Aborting because force_read_thompson is .true."
815
815
return
816
816
ENDIF
817
817
ENDIF
@@ -823,7 +823,7 @@ subroutine qr_acr_qg_par(NRHGtable)
823
823
ENDIF
824
824
ELSE
825
825
IF ( force_read_thompson ) THEN
826
- write (0 ,* ) " Non-existent " // qr_acr_qg_file // " Aborting because force_read_thompson is .true."
826
+ write (0 ,* ) " Non-existent " // qrqg_file // " Aborting because force_read_thompson is .true."
827
827
return
828
828
ENDIF
829
829
ENDIF
@@ -926,8 +926,8 @@ subroutine qr_acr_qg_par(NRHGtable)
926
926
enddo
927
927
enddo
928
928
IF ( write_thompson_tables ) THEN
929
- write (0 ,* ) " Writing " // qr_acr_qg_file // " in Tempo MP init"
930
- OPEN (63 ,file= qr_acr_qg_file ,form= " unformatted" ,err= 9234 )
929
+ write (0 ,* ) " Writing " // qrqg_file // " in Tempo MP init"
930
+ OPEN (63 ,file= qrqg_file ,form= " unformatted" ,err= 9234 )
931
931
WRITE (63 ,err= 9234 ) tcg_racg
932
932
WRITE (63 ,err= 9234 ) tmr_racg
933
933
WRITE (63 ,err= 9234 ) tcr_gacr
@@ -936,7 +936,7 @@ subroutine qr_acr_qg_par(NRHGtable)
936
936
CLOSE (63 )
937
937
RETURN ! ----- RETURN
938
938
9234 CONTINUE
939
- write (0 ,* ) " Error writing " // qr_acr_qg_file
939
+ write (0 ,* ) " Error writing " // qrqg_file
940
940
return
941
941
ENDIF
942
942
ENDIF
0 commit comments