anchor.diff:          call check( nf90_put_att(ncid,lev_id,"positive","up"))
           call check( nf90_put_att(ncid,lev_id,"units","m"))
   
  -        if (calendar==GREGORIAN) then
  -            call check( nf90_put_att(ncid,time_id,"long_name","modified Julian Day"))
  +        if (time%calendar==GREGORIAN) then
               call check( nf90_put_att(ncid,time_id,"calendar","gregorian"))
  -        elseif (calendar==NOLEAP) then
  -            call check( nf90_put_att(ncid,time_id,"long_name","Time"))
  +        elseif (time%calendar==NOLEAP) then
               call check( nf90_put_att(ncid,time_id,"calendar","noleap"))
  -        elseif (calendar==THREESIXTY) then
  -            call check( nf90_put_att(ncid,time_id,"long_name","Time"))
  +        elseif (time%calendar==THREESIXTY) then
               call check( nf90_put_att(ncid,time_id,"calendar","360-day"))
           endif
   
  
positive.code:     !! @param options   model wide options so the correct output can be created
      !!
      !!------------------------------------------------------------
      subroutine create_file(filename,options)
          character(len=255), intent(in) :: filename
          type(options_type), intent(in) :: options
  
          ! store real (not model) timestamp
          character(len=19) :: todays_date_time
  
negative.code:             call setup_varids(ncid,options)
          else
              ! otherwise, create a new file
              call create_file(filename, options, domain%model_time)
              ! and write constant (in time) variables
              call check( nf90_put_var(ncid, lat_id,    domain%lat), trim(filename)//":Latitude" )
              call check( nf90_put_var(ncid, lon_id,    domain%lon), trim(filename)//":Longitude" )
  