Changeset 4225 for dynamico_lmdz
- Timestamp:
- Jan 10, 2020, 3:07:23 PM (5 years ago)
- Location:
- dynamico_lmdz/simple_physics/phyparam
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/simple_physics/phyparam/Makefile
r4224 r4225 1 # Example (bash) : 2 # clear ; make clean ; F90=ifort FFLAGS=-fast time make -j 1 # Examples (bash) : 2 # clear ; make clean ; 3 # F90=ifort FFLAGS=-fast time make -j 4 # F90=gfortran F90FLAGS=-ffree-line-length-none gmake 5 # known to compile with gfortran version 7, ifort version 17 6 7 # if XCodeML F_Front is installed, set FFRONT=F_Front to parse code into XML 8 FFRONT ?= true 3 9 4 10 VPATH = obj … … 9 15 10 16 obj : 11 @mkdir obj include lib 17 @mkdir obj include lib xml 12 18 13 19 clean : 14 rm -f obj/* include/* lib/* 20 rm -f obj/* include/* lib/* xml/* 15 21 16 22 %.so : $(OBJECTS) … … 28 34 obj/phyparam_mod.o : MAIN solar.o radiative_sw.o radiative_lw.o comgeomfi.o writefield_mod.o 29 35 36 SRC = $(basename $(notdir $@)) 30 37 obj/%.o: physics/%.F90 31 $(F90) -I include -fPIC -c $(F90FLAGS) $< -o $@ 32 @mv $(basename $(notdir $@)).mod include 38 $(F90) -I include -fPIC $(F90FLAGS) -c $< 39 @mv $(SRC).mod include 40 @mv $(SRC).o obj 41 @cpp -DXCODEML $< > xml/$(SRC).f90 42 @$(FFRONT) -M xml xml/$(SRC).f90 > xml/$(SRC).xml -
dynamico_lmdz/simple_physics/phyparam/physics/logging.F90
r4224 r4225 24 24 END INTERFACE 25 25 26 ! This module provides a default implementation of flush_plugin but the top-level driver is welcome to override it. 26 #ifdef XCODEML 27 ! XCodeML cannot parse procedure pointers 28 29 #define default_flush_plugin flush_plugin 30 #define default_log_gridpoint log_gridpoint_plugin 31 32 #else 33 34 ! This module provides a default implementation of flush_plugin but the top-level driver is welcome to override it. 27 35 PROCEDURE(plugin), POINTER :: flush_plugin => default_flush_plugin 28 36 29 ! The top-level driver MUST provide an implementation for log_gridpoint_plugin 37 ! The top-level driver MUST provide an implementation for log_gridpoint_plugin 30 38 PROCEDURE(plugin_log_gridpoint), POINTER :: log_gridpoint_plugin => NULL() 39 40 #endif 31 41 32 42 INTEGER, PARAMETER :: linesize=10000, logging_bufsize=100 … … 69 79 END SUBROUTINE log_gridpoint 70 80 81 SUBROUTINE default_log_gridpoint(index, line) 82 INTEGER, INTENT(IN) :: index ! index of gridpoint 83 CHARACTER(*), INTENT(OUT) :: line 84 line='' 85 END SUBROUTINE default_log_gridpoint 86 71 87 END MODULE logging -
dynamico_lmdz/simple_physics/phyparam/physics/turbulence.F90
r4210 r4225 248 248 IF(lwrite) THEN 249 249 ig=ngrid/2+1 250 WRITELOG(*,*) 'Pression (mbar) ,altitude (km),u,v,theta, rho dz'250 WRITELOG(*,*) 'Pression (mbar) altitude (km),u,v,theta, rho dz' 251 251 DO ilay=1,nlay 252 252 WRITELOG(*,*) .01*pplay(ig,ilay),.001*pzlay(ig,ilay), & 253 253 pu(ig,ilay),pv(ig,ilay),ph(ig,ilay),za(ig,ilay) 254 254 ENDDO 255 WRITELOG(*,*) 'Pression (mbar) ,altitude (km),zb'255 WRITELOG(*,*) 'Pression (mbar) altitude (km),zb' 256 256 DO ilev=1,nlay 257 257 WRITELOG(*,*) .01*pplev(ig,ilev),.001*pzlev(ig,ilev), & … … 291 291 WRITELOG(*,*) 'coefficients Cd pour v et h' 292 292 WRITELOG(*,*) zcdv(ngrid/2+1),zcdh(ngrid/2+1) 293 WRITELOG(*,*) ,'coefficients K pour v et h'293 WRITELOG(*,*) 'coefficients K pour v et h' 294 294 DO ilev=1,nlay 295 295 WRITELOG(*,*) zkv(ngrid/2+1,ilev),zkh(ngrid/2+1,ilev) … … 429 429 IF(lwrite) THEN 430 430 WRITELOG(*,*) 431 WRITELOG(*,*) ,'Diagnostique de la diffusion verticale'432 WRITELOG(*,*) ,'h avant et apres diffusion verticale'433 WRITELOG(*,*) ,ptsrf(ngrid/2+1),ztsrf2(ngrid/2+1)431 WRITELOG(*,*) 'Diagnostique de la diffusion verticale' 432 WRITELOG(*,*) 'h avant et apres diffusion verticale' 433 WRITELOG(*,*) ptsrf(ngrid/2+1),ztsrf2(ngrid/2+1) 434 434 DO ilev=1,nlay 435 435 WRITELOG(*,*) ph(ngrid/2+1,ilev),zh(ngrid/2+1,ilev)
Note: See TracChangeset
for help on using the changeset viewer.