|
libsim Versione 8.0.0
|
◆ vol7d_var_init()
Inizializza un oggetto vol7d_var con i parametri opzionali forniti. Se non viene passato nessun parametro opzionale l'oggetto è inizializzato a valore mancante. I membri r, d, i, b, c non possono essere assegnati tramite costruttore, ma solo direttamente.
Definizione alla linea 359 del file vol7d_var_class.F90. 360IF (c_e(this%feat_ind)) THEN
361 IF (c_e(var_features(this%feat_ind)%posdef)) THEN
362 IF (c_e(val)) THEN
363 val = max(var_features(this%feat_ind)%posdef, val)
364 ENDIF
365 ENDIF
366ENDIF
367
368END SUBROUTINE vol7d_var_features_posdef_apply
369
370
371!> Return the physical type of the variable.
372!! Returns a rough classification of the variable depending on the
373!! physical parameter it represents. The result is one of the
374!! constants vartype_* defined in the module. To be extended.
375ELEMENTAL FUNCTION vol7d_vartype(this) RESULT(vartype)
376TYPE(vol7d_var),INTENT(in) :: this !< vol7d_var object to be tested
377
378INTEGER :: vartype
379
380vartype = var_ord
381SELECT CASE(this%btable)
382CASE('B01012', 'B11001', 'B11043', 'B22001') ! direction, degree true
383 vartype = var_dir360
384CASE('B07004', 'B10004', 'B10051', 'B10060') ! pressure, Pa
385 vartype = var_press
386CASE('B11003', 'B11200') ! u-component
387 vartype = var_ucomp
388CASE('B11004', 'B11201') ! v-component
389 vartype = var_vcomp
390CASE('B11005', 'B11006') ! w-component
391 vartype = var_wcomp
392END SELECT
393
394END FUNCTION vol7d_vartype
395
396
|