- Timestamp:
- Jun 26, 2009, 11:16:09 AM (15 years ago)
- Location:
- LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/gcm.F
r1143 r1195 17 17 USE mod_hallo 18 18 USE Bands 19 19 USE getparam 20 20 USE filtreg_mod 21 21 … … 194 194 195 195 call init_parallel 196 call ini_getparam("out.def") 196 197 call Read_Distrib 197 198 ! Ehouarn : temporarily (?) keep this only for Earth -
LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/getparam.F90
r1186 r1195 1 1 ! 2 ! $ Id$2 ! $Header$ 3 3 ! 4 4 MODULE getparam 5 #ifdef CPP_IOIPSL6 5 USE IOIPSL 7 #else8 ! if not using IOIPSL, we still need to use (a local version of) getin9 USE ioipsl_getincom10 #endif11 12 6 INTERFACE getpar 13 7 MODULE PROCEDURE ini_getparam,fin_getparam,getparamr,getparami,getparaml … … 18 12 CONTAINS 19 13 SUBROUTINE ini_getparam(fichier) 14 USE parallel 20 15 ! 21 16 IMPLICIT NONE 22 17 ! 23 18 CHARACTER*(*) :: fichier 24 open(out_eff,file=fichier,status='unknown',form='formatted') 19 IF (mpi_rank==0) OPEN(out_eff,file=fichier,status='unknown',form='formatted') 20 25 21 END SUBROUTINE ini_getparam 26 22 27 23 SUBROUTINE fin_getparam 24 USE parallel 28 25 ! 29 26 IMPLICIT NONE 30 27 ! 31 close(out_eff)28 IF (mpi_rank==0) CLOSE(out_eff) 32 29 33 30 END SUBROUTINE fin_getparam 34 31 35 32 SUBROUTINE getparamr(TARGET,def_val,ret_val,comment) 33 USE parallel 36 34 ! 37 35 IMPLICIT NONE … … 50 48 call getin(TARGET,ret_val) 51 49 52 write(out_eff,*) '######################################' 53 write(out_eff,*) '#### ',comment,' #####' 54 write(out_eff,*) TARGET,'=',ret_val 55 50 IF (mpi_rank==0) THEN 51 write(out_eff,*) '######################################' 52 write(out_eff,*) '#### ',comment,' #####' 53 write(out_eff,*) TARGET,'=',ret_val 54 ENDIF 55 56 56 END SUBROUTINE getparamr 57 57 58 58 SUBROUTINE getparami(TARGET,def_val,ret_val,comment) 59 USE parallel 59 60 ! 60 61 IMPLICIT NONE … … 73 74 call getin(TARGET,ret_val) 74 75 75 write(out_eff,*) '######################################' 76 write(out_eff,*) '#### ',comment,' #####' 77 write(out_eff,*) comment 78 write(out_eff,*) TARGET,'=',ret_val 79 76 IF (mpi_rank==0) THEN 77 write(out_eff,*) '######################################' 78 write(out_eff,*) '#### ',comment,' #####' 79 write(out_eff,*) comment 80 write(out_eff,*) TARGET,'=',ret_val 81 ENDIF 82 80 83 END SUBROUTINE getparami 81 84 82 85 SUBROUTINE getparaml(TARGET,def_val,ret_val,comment) 86 USE parallel 83 87 ! 84 88 IMPLICIT NONE … … 97 101 call getin(TARGET,ret_val) 98 102 99 write(out_eff,*) '######################################' 100 write(out_eff,*) '#### ',comment,' #####' 101 write(out_eff,*) TARGET,'=',ret_val 102 103 IF (mpi_rank==0) THEN 104 write(out_eff,*) '######################################' 105 write(out_eff,*) '#### ',comment,' #####' 106 write(out_eff,*) TARGET,'=',ret_val 107 ENDIF 108 103 109 END SUBROUTINE getparaml 104 110 -
LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/leapfrog_p.F
r1190 r1195 19 19 USE infotrac 20 20 USE guide_p_mod, ONLY : guide_main 21 USE getparam 21 22 22 23 IMPLICIT NONE … … 1259 1260 print *, 'Temps CPU ecoule sur la parallelisation :',DiffCpuTime() 1260 1261 CALL print_filtre_timer 1262 call fin_getparam 1261 1263 call finalize_parallel 1262 1264 c$OMP END MASTER … … 1284 1286 1285 1287 c$OMP MASTER 1288 call fin_getparam 1286 1289 call finalize_parallel 1287 1290 c$OMP END MASTER … … 1396 1399 endif ! of if (planet_type.eq."earth") 1397 1400 1398 CLOSE(99)1401 ! CLOSE(99) 1399 1402 c$OMP END MASTER 1400 1403 ENDIF ! of IF (itau.EQ.itaufin) … … 1452 1455 IF( itau. EQ. itaufinp1 ) then 1453 1456 c$OMP MASTER 1457 call fin_getparam 1454 1458 call finalize_parallel 1455 1459 c$OMP END MASTER … … 1563 1567 END IF ! of IF(.not.purmats) 1564 1568 c$OMP MASTER 1569 call fin_getparam 1565 1570 call finalize_parallel 1566 1571 c$OMP END MASTER
Note: See TracChangeset
for help on using the changeset viewer.