libsim  Versione8.0.0

◆ volgrid6d_init()

subroutine volgrid6d_init ( type(volgrid6d)  this,
type(griddim_def), optional  griddim,
integer, intent(in), optional  time_definition,
character(len=*), intent(in), optional  categoryappend 
)

Constructor, it creates a new instance of the object.

The constructor should be explicitly used only in rare cases, volgrid6d objects are usually created through the import interface.

Parametri
thisobject to be initialized
griddimgrid descriptor
[in]time_definition0=time is reference time; 1=time is validity time
[in]categoryappendappend this suffix to log4fortran namespace category

Definizione alla linea 372 del file volgrid6d_class.F90.

372 
373 ! this is not really needed if we can check other flags for a full
374 ! field missing values
375  IF (linivol) this%voldati = rmiss
376  this%voldati = rmiss
377  ENDIF
378  ENDIF
379 
380  IF (.NOT.ASSOCIATED(this%gaid)) THEN
381 #ifdef DEBUG
382  CALL l4f_category_log(this%category,l4f_debug,"alloc gaid volume")
383 #endif
384  ALLOCATE(this%gaid(SIZE(this%level), SIZE(this%time), &
385  SIZE(this%timerange), SIZE(this%var)),stat=stallo)
386  IF (stallo /= 0)THEN
387  CALL l4f_category_log(this%category,l4f_fatal,"allocating memory")
388  CALL raise_fatal_error()
389  ENDIF
390 
391  IF (linivol) THEN
392 !!$ DO i=1 ,SIZE(this%gaid,1)
393 !!$ DO ii=1 ,SIZE(this%gaid,2)
394 !!$ DO iii=1 ,SIZE(this%gaid,3)
395 !!$ DO iiii=1 ,SIZE(this%gaid,4)
396 !!$ this%gaid(i,ii,iii,iiii) = grid_id_new() ! optimize?
397 !!$ ENDDO
398 !!$ ENDDO
399 !!$ ENDDO
400 !!$ ENDDO
401 
402  this%gaid = grid_id_new()
403  ENDIF
404  ENDIF

Generated with Doxygen.