Ignore:
Timestamp:
11/21/18 16:16:06 (6 years ago)
Author:
jisesh
Message:

devel/unstructured : laplacian operator

Location:
codes/icosagcm/devel/Python/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/Python/src/kernels_transport.jin

    r687 r784  
    310310    END_BLOCK 
    311311END_BLOCK 
     312 
     313KERNEL(scalar_laplacian) 
     314 
     315  FORALL_CELLS_EXT() 
     316    ON_EDGES 
     317       grad(EDGE) = SIGN*(b(CELL2)-b(CELL1)) 
     318    END_BLOCK 
     319  END_BLOCK 
     320 
     321  FORALL_CELLS_EXT() 
     322    ON_PRIMAL 
     323      div_ij=0. 
     324      FORALL_EDGES 
     325        div_ij = div_ij + SIGN*LE_DE*grad(EDGE) 
     326      END_BLOCK 
     327      divu(CELL) = div_ij / AI 
     328    END_BLOCK 
     329  END_BLOCK 
     330 
     331END_BLOCK 
  • codes/icosagcm/devel/Python/src/unstructured.pyx

    r747 r784  
    7777                     ['dynamico_init_hybrid', c_void_p,3], 
    7878                     ['dynamico_caldyn_unstructured', c_num, c_void_p,20], 
     79                     ['dynamico_scalar_laplacian', c_void_p,2], 
    7980                     ['dynamico_partition_graph', c_int,2, c_void_p,3, c_int, c_void_p], 
    8081                     ['dynamico_init_transfer', c_int, c_int,2,c_void_p,3, c_int,2,c_void_p,3], 
Note: See TracChangeset for help on using the changeset viewer.