Changeset a9cf4b1 in flexpart.git for src/FLEXPART_MPI.f90


Ignore:
Timestamp:
Apr 5, 2018, 12:30:54 PM (6 years ago)
Author:
Espen Sollum ATMOS <eso@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
3f149cc
Parents:
8fcfd08
Message:

Made enabling netCDF output during compilation optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/FLEXPART_MPI.f90

    r0c00f1f ra9cf4b1  
    5353  use conv_mod
    5454  use mpi_mod
    55   use netcdf_output_mod, only: writeheader_netcdf
    5655  use random_mod, only: gasdev1
    5756  use class_gribfile
     57
     58#ifdef USE_NCF
     59  use netcdf_output_mod, only: writeheader_netcdf
     60#endif
    5861
    5962  implicit none
     
    378381
    379382  if (mp_measure_time) call mpif_mtime('iotime',0)
     383
    380384  if (lroot) then ! MPI: this part root process only
    381 
    382   if (lnetcdfout.eq.1) then
    383     call writeheader_netcdf(lnest=.false.)
    384   else
    385     call writeheader
    386   end if
    387 
    388   if (nested_output.eq.1) then
    389     if (lnetcdfout.eq.1) then
    390       call writeheader_netcdf(lnest=.true.)
    391     else
    392       call writeheader_nest
    393     endif
    394   endif
    395 
    396 !
     385#ifdef USE_NCF
     386    if (lnetcdfout.eq.1) then
     387      call writeheader_netcdf(lnest=.false.)
     388    else
     389      call writeheader
     390    end if
     391   
     392    if (nested_output.eq.1) then
     393      if (lnetcdfout.eq.1) then
     394        call writeheader_netcdf(lnest=.true.)
     395      else
     396        call writeheader_nest
     397      endif
     398    endif
     399#endif
     400
    397401    if (verbosity.gt.0) then
    398402      print*,'call writeheader'
     
    402406! FLEXPART 9.2 ticket ?? write header in ASCII format
    403407    call writeheader_txt
    404 !if (nested_output.eq.1) call writeheader_nest
     408
    405409    if (nested_output.eq.1.and.surf_only.ne.1) call writeheader_nest
    406410    if (nested_output.eq.1.and.surf_only.eq.1) call writeheader_nest_surf
     
    409413
    410414  if (mp_measure_time) call mpif_mtime('iotime',0)
    411 
    412   !open(unitdates,file=path(2)(1:length(2))//'dates')
    413415
    414416  if (verbosity.gt.0 .and. lroot) then
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG