Changeset 1499
- Timestamp:
- Nov 19, 2015, 4:04:48 PM (9 years ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/README
r1467 r1499 2195 2195 Default value is True. The goal is to disable supersaturation even 2196 2196 with microphysics for comparison purposes. 2197 2198 == 19/11/2015 == EM 2199 - Added option "-cpp" so that users can add the definition of specific 2200 precompiling flags in makegcm_* scripts (and added default BLAS and 2201 LAPACK flags for ifort on Gnome and Ada). 2202 - Put calls to dgesv (Lapack) routine in photochemistry_asis.F90 under the 2203 LAPACK preprocessing flag. Moved secondary routines in photochemistry.F and 2204 photochemistry_asis.F90 into the main (via contains instruction) to avoid 2205 multiple definitions of routines with identical names. -
trunk/LMDZ.MARS/libf/aeronomars/photochemistry.F
r1430 r1499 167 167 call chimtogcm(nlayer, nq, zycol, lswitch, nesp, rm) 168 168 169 return170 end 169 contains 170 171 171 172 172 c***************************************************************** … … 755 755 end do 756 756 757 return 758 end 757 end subroutine chimie 759 758 760 759 c***************************************************************** … … 857 856 end do 858 857 859 return 860 end 858 end subroutine gcmtochim 861 859 862 860 c***************************************************************** … … 943 941 end if 944 942 945 return 946 end 943 end subroutine chimtogcm 947 944 948 945 c***************************************************************** … … 1564 1561 end if 1565 1562 c 1566 return 1567 end 1563 end subroutine chemrates 1564 1565 end subroutine photochemistry -
trunk/LMDZ.MARS/libf/aeronomars/photochemistry_asis.F90
r1496 r1499 221 221 cnew(:) = c(ilev,:) 222 222 223 #ifdef LAPACK 223 224 call dgesv(nesp,1,mat,nesp,indx,cnew,nesp,code) 224 225 #else 226 write(*,*) "photochemistry_asis error, missing LAPACK routine dgesv" 227 stop 228 #endif 225 229 ! eliminate small values 226 230 … … 287 291 cnew(:) = c(ilev,:) 288 292 293 #ifdef LAPACK 289 294 call dgesv(nesp,1,mat,nesp,indx,cnew,nesp,code) 290 295 #else 296 write(*,*) "photochemistry_asis error, missing LAPACK routine dgesv" 297 stop 298 #endif 291 299 end if 292 300 … … 351 359 i_n, i_n2d, i_no, i_no2, i_n2, dens, c) 352 360 353 return 354 end 361 contains 355 362 356 363 !====================================================================== … … 958 965 v_phot(:,nb_phot) = h005(:) 959 966 960 return 961 end 967 end subroutine reactionrates 962 968 963 969 !====================================================================== … … 1075 1081 end do 1076 1082 1077 return 1078 end 1083 end subroutine fill_matrix 1079 1084 1080 1085 !================================================================ … … 1580 1585 end if 1581 1586 1582 return 1583 end 1587 end subroutine indice 1584 1588 1585 1589 !***************************************************************** … … 1748 1752 end do 1749 1753 1750 return 1751 end 1754 end subroutine gcmtochim 1752 1755 1753 1756 !***************************************************************** … … 1820 1823 end do 1821 1824 1822 return 1823 end 1825 end subroutine chimtogcm 1826 1827 end subroutine photochemistry_asis 1828 -
trunk/LMDZ.MARS/makegcm_g95
r1403 r1499 9 9 set phys="PHYS=$physique" 10 10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynlonlat_phylonlat' 11 set cpp_def='' 11 12 set ntrac = 1 12 13 set filtre=filtrez … … 312 313 are located in directories that are not referenced by default. 313 314 315 -cpp FLAG Add preprocessing definition of FLAG 316 314 317 -adjnt Compiles the adjoint model to the dynamical code. 315 318 … … 357 360 case -include 358 361 set include="$include -I$2" ; shift ; shift ; goto top 362 363 case -cpp 364 set cpp_def="$cpp_def -D$2" ; shift ; shift ; goto top 359 365 360 366 case -adjnt … … 737 743 else if $LINUX then 738 744 # Ehouarn : adapt to g95 739 set optim="$optim -fmod=${libo} "740 set optim90="$optim90 -fmod=${libo} "741 set optimtru90="$optimtru90 -fmod=${libo} "745 set optim="$optim -fmod=${libo} $cpp_def" 746 set optim90="$optim90 -fmod=${libo} $cpp_def" 747 set optimtru90="$optimtru90 -fmod=${libo} $cpp_def" 742 748 # Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above) 743 749 # set mod_loc_dir=$libo -
trunk/LMDZ.MARS/makegcm_gfortran
r1403 r1499 9 9 set phys="PHYS=$physique" 10 10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynlonlat_phylonlat' 11 set cpp_def='' 11 12 set ntrac = 1 12 13 set filtre=filtrez … … 308 309 -O "compilation options" set of fortran compilation options to use 309 310 311 -cpp FLAG Add preprocessing definition of FLAG 312 310 313 -include path 311 314 Used if the subroutines contain #include files (ccp) that … … 357 360 case -include 358 361 set include="$include -I$2" ; shift ; shift ; goto top 362 363 case -cpp 364 set cpp_def="$cpp_def -D$2" ; shift ; shift ; goto top 359 365 360 366 case -adjnt … … 737 743 else if $LINUX then 738 744 # Ehouarn : adapt to gfortran 739 set optim="$optim -I${libo} "740 set optim90="$optim90 -I${libo} "741 set optimtru90="$optimtru90 -ffree-form -I${libo} "745 set optim="$optim -I${libo} $cpp_def" 746 set optim90="$optim90 -I${libo} $cpp_def" 747 set optimtru90="$optimtru90 -ffree-form -I${libo} $cpp_def" 742 748 # Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above) 743 749 # set mod_loc_dir=$libo -
trunk/LMDZ.MARS/makegcm_ifort
r1416 r1499 9 9 set phys="PHYS=$physique" 10 10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynlonlat_phylonlat' 11 set cpp_def='' 11 12 set ntrac = 1 12 13 set filtre=filtrez … … 50 51 hostname | grep 'ada' > /dev/null 51 52 if ( $? == 0 ) then 52 echo "*** NETCDF preset *** CICLADcluster"53 echo "*** NETCDF preset *** Ada cluster" 53 54 setenv NCDFLIB /smplocal/pub/NetCDF/4.1.3/seq/lib 54 55 setenv NCDFINC /smplocal/pub/NetCDF/4.1.3/seq/include … … 165 166 set optim90="" 166 167 set oplink="" 168 169 hostname | grep 'n201' > /dev/null 170 if ( $? == 0 ) then 171 #on Gnome Lapack & Blas available via ifort's MKL 172 set cpp_def="$cpp_def -DBLAS -DLAPACK" 173 endif 174 hostname | grep 'ada' > /dev/null 175 if ( $? == 0 ) then 176 #on Ada Lapack & Blas available via ifort's MKL 177 set cpp_def="$cpp_def -DBLAS -DLAPACK" 178 endif 167 179 168 180 ######################################################################## … … 331 343 are located in directories that are not referenced by default. 332 344 345 -cpp FLAG Add preprocessing definition of FLAG 346 333 347 -adjnt Compiles the adjoint model to the dynamical code. 334 348 … … 376 390 case -include 377 391 set include="$include -I$2" ; shift ; shift ; goto top 392 393 case -cpp 394 set cpp_def="$cpp_def -D$2" ; shift ; shift ; goto top 378 395 379 396 case -adjnt … … 755 772 else if $LINUX then 756 773 # Ehouarn : adapt to gfortran 757 set optim="$optim -I${libo} "758 set optim90="$optim90 -I${libo} "759 set optimtru90="$optimtru90 -I${libo} "774 set optim="$optim -I${libo} $cpp_def" 775 set optim90="$optim90 -I${libo} $cpp_def" 776 set optimtru90="$optimtru90 -I${libo} $cpp_def" 760 777 # Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above) 761 778 # set mod_loc_dir=$libo -
trunk/LMDZ.MARS/makegcm_pgf
r1403 r1499 9 9 set phys="PHYS=$physique" 10 10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynlonlat_phylonlat' 11 set cpp_def='' 11 12 set ntrac = 1 12 13 set filtre=filtrez … … 317 318 are located in directories that are not referenced by default. 318 319 320 -cpp FLAG Add preprocessing definition of FLAG 321 319 322 -adjnt Compiles the adjoint model to the dynamical code. 320 323 … … 362 365 case -include 363 366 set include="$include -I$2" ; shift ; shift ; goto top 367 368 case -cpp 369 set cpp_def="$cpp_def -D$2" ; shift ; shift ; goto top 364 370 365 371 case -adjnt … … 738 744 set optimtru90=" $optimtru90 -I$libo " 739 745 else if $LINUX then 740 set optim="$optim -module $libo "741 set optim90="$optim90 -module $libo "742 set optimtru90="$optimtru90 -module $libo "746 set optim="$optim -module $libo $cpp_def" 747 set optim90="$optim90 -module $libo $cpp_def" 748 set optimtru90="$optimtru90 -module $libo $cpp_def" 743 749 # Ehouarn: remove set mod_loc_dir def below; mod_loc_dir=$localdir (set above) 744 750 # set mod_loc_dir=$libo
Note: See TracChangeset
for help on using the changeset viewer.