Changeset 1734 for LMDZ5/trunk
- Timestamp:
- Mar 28, 2013, 12:41:27 PM (12 years ago)
- Location:
- LMDZ5/trunk/libf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dyn3dmem/conf_gcm.F
r1699 r1734 62 62 LOGICAL fxyhypbb, ysinuss 63 63 INTEGER i 64 64 character(len=*),parameter :: modname="conf_gcm" 65 character (len=80) :: abort_message 66 #ifdef CPP_OMP 67 integer,external :: OMP_GET_NUM_THREADS 68 #endif 65 69 c 66 70 c ------------------------------------------------------------------- … … 91 95 c initialisations: 92 96 c ---------------- 93 adjust=.false.94 call getin('adjust',adjust)95 96 itaumax=097 call getin('itaumax',itaumax);98 if (itaumax<=0) itaumax=HUGE(itaumax)99 97 100 98 !Config Key = lunout … … 109 107 & STATUS='unknown',FORM='formatted') 110 108 ENDIF 109 110 adjust=.false. 111 call getin('adjust',adjust) 112 113 #ifdef CPP_OMP 114 ! adjust=y not implemented in case of OpenMP threads... 115 !$OMP PARALLEL 116 if ((OMP_GET_NUM_THREADS()>1).and.adjust) then 117 write(lunout,*)'conf_gcm: Error, adjust should be set to n' 118 &,' when running with OpenMP threads' 119 abort_message = 'Wrong value for adjust' 120 call abort_gcm(modname,abort_message,1) 121 endif 122 !$OMP END PARALLEL 123 #endif 124 125 itaumax=0 126 call getin('itaumax',itaumax); 127 if (itaumax<=0) itaumax=HUGE(itaumax) 111 128 112 129 !Config Key = prt_level -
LMDZ5/trunk/libf/dyn3dpar/conf_gcm.F
r1697 r1734 61 61 LOGICAL fxyhypbb, ysinuss 62 62 INTEGER i 63 63 character(len=*),parameter :: modname="conf_gcm" 64 character (len=80) :: abort_message 65 #ifdef CPP_OMP 66 integer,external :: OMP_GET_NUM_THREADS 67 #endif 64 68 c 65 69 c ------------------------------------------------------------------- … … 90 94 c initialisations: 91 95 c ---------------- 92 adjust=.false.93 call getin('adjust',adjust)94 95 itaumax=096 call getin('itaumax',itaumax);97 if (itaumax<=0) itaumax=HUGE(itaumax)98 96 99 97 !Config Key = lunout … … 108 106 & STATUS='unknown',FORM='formatted') 109 107 ENDIF 108 109 adjust=.false. 110 call getin('adjust',adjust) 111 112 #ifdef CPP_OMP 113 ! adjust=y not implemented in case of OpenMP threads... 114 !$OMP PARALLEL 115 if ((OMP_GET_NUM_THREADS()>1).and.adjust) then 116 write(lunout,*)'conf_gcm: Error, adjust should be set to n' 117 &,' when running with OpenMP threads' 118 abort_message = 'Wrong value for adjust' 119 call abort_gcm(modname,abort_message,1) 120 endif 121 !$OMP END PARALLEL 122 #endif 123 124 itaumax=0 125 call getin('itaumax',itaumax); 126 if (itaumax<=0) itaumax=HUGE(itaumax) 110 127 111 128 !Config Key = prt_level
Note: See TracChangeset
for help on using the changeset viewer.