- Timestamp:
- 01/20/15 09:35:32 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/branchs/xios-1.0/src/test/test_complete.f90
r529 r547 29 29 INTEGER :: ni,ibegin,iend,nj,jbegin,jend 30 30 INTEGER :: i,j,l,ts,n, nb_pt 31 INTEGER :: iret32 31 33 32 !!! MPI Initialization … … 201 200 CALL xios_add_child(field_hdl,var_hdl,"my_local_attribute") 202 201 CALL xios_set_attr(var_hdl,type="string") 203 iret=xios_setVar("my_local_attribute","attribute_local")202 ok=xios_setVar("my_local_attribute","attribute_local") 204 203 205 204 !!! Add a variable as file global attribute … … 207 206 CALL xios_add_child(file_hdl,var_hdl,"my_global_attribute") 208 207 CALL xios_set_attr(var_hdl,type="string") 209 iret=xios_setVar("my_global_attribute","attribute_global")208 ok=xios_setVar("my_global_attribute","attribute_global") 210 209 211 210 !!! Modify a variable used as attribute (defined in xml file) 212 211 213 iret=xios_setVar("my_global_attribute_xml","6h_file")212 ok=xios_setVar("my_global_attribute_xml","6h_file") 214 213 215 214 !!! Get the value of a variable (defined in xml file) 216 215 217 iret=xios_getVar("my_attribute1",str_temp)216 ok=xios_getVar("my_attribute1",str_temp) 218 217 PRINT *, "my_attribute1 is :",TRIM(str_temp) 219 218
Note: See TracChangeset
for help on using the changeset viewer.