Changeset 5084 for LMDZ6/trunk/libf/misc
- Timestamp:
- Jul 19, 2024, 6:40:44 PM (5 months ago)
- Location:
- LMDZ6/trunk/libf/misc
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/misc/lmdz_xios.F90
r5066 r5084 12 12 MODULE lmdz_xios 13 13 !!!! Wrapper XIOS 14 !! => must be replaced lat er by official xios wrapper when available14 !! => must be replaced latter by official xios wrapper when available 15 15 16 16 LOGICAL,PARAMETER :: using_xios = .FALSE. -
LMDZ6/trunk/libf/misc/write_field.F90
r5075 r5084 1 ! 2 ! $Id$ 3 ! 1 4 module write_field 2 USE lmdz_netcdf, ONLY: nf_sync, nf90_put_var, nf_enddef, nf_def_dim, nf_unlimited, & 3 nf_clobber, nf90_format, nf_create, nf_def_var 4 5 implicit none 5 implicit none 6 6 7 7 integer, parameter :: MaxWriteField = 100 … … 73 73 subroutine WriteField_gen(name,Field,dimx,dimy,dimz) 74 74 implicit none 75 include 'netcdf.inc' 75 76 character(len=*) :: name 76 77 integer :: dimx,dimy,dimz … … 101 102 count(4)=1 102 103 103 status = nf90_put_var(FieldId(Index),FieldVarId(Index),Field,start,count)104 status = NF_PUT_VARA_DOUBLE(FieldId(Index),FieldVarId(Index),start,count,Field) 104 105 status = NF_SYNC(FieldId(Index)) 105 106 … … 108 109 subroutine CreateNewField(name,dimx,dimy,dimz) 109 110 implicit none 111 include 'netcdf.inc' 110 112 character(len=*) :: name 111 113 integer :: dimx,dimy,dimz … … 124 126 status = NF_DEF_DIM(FieldId(NbField),'Z',dimz,TabDim(3)) 125 127 status = NF_DEF_DIM(FieldId(NbField),'iter',NF_UNLIMITED,TabDim(4)) 126 status = NF_DEF_VAR(FieldId(NbField),FieldName(NbField),NF 90_FORMAT,4,TabDim,FieldVarId(NbField))128 status = NF_DEF_VAR(FieldId(NbField),FieldName(NbField),NF_DOUBLE,4,TabDim,FieldVarId(NbField)) 127 129 status = NF_ENDDEF(FieldId(NbField)) 128 130 129 131 end subroutine CreateNewField 132 133 130 134 131 135 subroutine write_field1D(name,Field) … … 281 285 //trim(int2str(pos+offset)) & 282 286 //'," ---> ",g22.16," | ")' 283 ! d �pent de l'impl�mention, sur compaq, c'est necessaire287 ! dépent de l'implémention, sur compaq, c'est necessaire 284 288 ! Pos=Pos+ColumnSize 285 289 endif -
LMDZ6/trunk/libf/misc/wxios.F90
r5075 r5084 70 70 reformaop = "average" 71 71 72 IF (op =="inst(X)") THEN72 IF (op.EQ."inst(X)") THEN 73 73 reformaop = "instant" 74 74 END IF 75 75 76 IF (op =="once") THEN76 IF (op.EQ."once") THEN 77 77 reformaop = "once" 78 78 END IF 79 79 80 IF (op =="t_max(X)") THEN80 IF (op.EQ."t_max(X)") THEN 81 81 reformaop = "maximum" 82 82 END IF 83 83 84 IF (op =="t_min(X)") THEN84 IF (op.EQ."t_min(X)") THEN 85 85 reformaop = "minimum" 86 86 END IF … … 604 604 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 605 605 SUBROUTINE wxios_add_field(fieldname, fieldgroup, fieldlongname, fieldunit) 606 USE lmdz_netcdf, only: nf90_fill_real606 USE netcdf, only: nf90_fill_real 607 607 608 608 IMPLICIT NONE … … 621 621 def = nf90_fill_real 622 622 623 IF (fieldunit ==" ") THEN623 IF (fieldunit .EQ. " ") THEN 624 624 newunit = "-" 625 625 ELSE … … 666 666 667 667 ! Ajout Abd pour NMC: 668 IF (fid <=6) THEN668 IF (fid.LE.6) THEN 669 669 axis_id="presnivs" 670 670 ELSE … … 682 682 683 683 !On selectionne le bon groupe de champs: 684 IF (fdim ==2) THEN684 IF (fdim.EQ.2) THEN 685 685 CALL xios_get_handle("fields_2D", fieldgroup) 686 686 ELSE … … 726 726 CALL xios_set_attr(field, level=field_level, enabled=.TRUE.) 727 727 728 IF (fdim ==2) THEN728 IF (fdim.EQ.2) THEN 729 729 !Si c'est un champ 2D: 730 730 IF (prt_level >= 10) THEN
Note: See TracChangeset
for help on using the changeset viewer.