Ignore:
Timestamp:
09/22/16 10:58:44 (8 years ago)
Author:
mhnguyen
Message:

Adding new transformation: Compute_connectivity_domain

Test
+) On Curie
+) Test passes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/test/test_unstruct_complete.f90

    r666 r934  
    3030  INTEGER,ALLOCATABLE :: i_index(:) 
    3131  LOGICAL,ALLOCATABLE :: mask_glo(:),mask(:) 
     32  INTEGER,ALLOCATABLE :: n_local(:),local_neighbor(:,:) 
    3233  DOUBLE PRECISION,ALLOCATABLE :: lon(:),lat(:),field_A_srf(:,:), lonvalue(:) ; 
    3334  DOUBLE PRECISION,ALLOCATABLE :: bounds_lon(:,:),bounds_lat(:,:) ; 
    3435  INTEGER :: ni,ibegin,iend,nj,jbegin,jend 
    35   INTEGER :: i,j,l,ts,n 
     36  INTEGER :: i,j,l,ts,n, nbMax 
    3637  INTEGER :: ncell_glo,ncell,ind 
    3738  REAL :: ilon,ilat 
     
    164165  ALLOCATE(field_A_srf(ncell,llm)) 
    165166  ALLOCATE(mask(ncell)) 
     167  ALLOCATE(n_local(ncell)) 
    166168  ncell=0 
    167169  data_n_index=0 
     
    205207  CALL xios_set_domain_attr("domain_srf", lonvalue_1D=lon, latvalue_1D=lat) 
    206208  CALL xios_set_domain_attr("domain_srf", nvertex=4, bounds_lon_1D=bounds_lon, bounds_lat_1D=bounds_lat) 
     209!  CALL xios_set_compute_connectivity_domain_attr("compute", n_neighbor=n_local, local_neighbor=local_neighbor) 
    207210 
    208211 
     
    211214  CALL xios_set_timestep(dtime) 
    212215  CALL xios_close_context_definition() 
     216 
     217  CALL xios_get_compute_connectivity_domain_attr("compute", n_neighbor_max=nbMax) 
     218  ALLOCATE(local_neighbor(nbMax,ncell)) 
     219  CALL xios_get_compute_connectivity_domain_attr("compute", n_neighbor=n_local, local_neighbor=local_neighbor) 
    213220 
    214221   DO ts=1,24*10 
Note: See TracChangeset for help on using the changeset viewer.