Changeset 749


Ignore:
Timestamp:
10/08/18 10:49:07 (6 years ago)
Author:
dubos
Message:

devel/unstructured : fix recently introduced bugs

Location:
codes/icosagcm/devel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/Python/dynamico/meshes.py

    r747 r749  
    181181    def field_z(self,n=1): return zeros((n,self.ny,self.nx,self.llm)) 
    182182    def field_w(self,n=1): return zeros((n,self.ny,self.nx,self.llm+1)) 
    183     def field_u(self,n=1): return zeros((self.ny,2*self.nx,self.llm)) 
     183    def field_u(self,n=1): return zeros((n,self.ny,2*self.nx,self.llm)) 
    184184    def field_ps(self,n=1): return zeros((n,self.ny,self.nx)) 
    185185    def ucomp(self,u):  
  • codes/icosagcm/devel/Python/test/py/RSW2_MPAS_W02.py

    r681 r749  
    4545print T, nt 
    4646 
    47 caldyn = unst.Caldyn_RSW(mesh) 
    48 scheme = time_step.RK4(caldyn.bwd_fast_slow, dt) 
    49 #scheme = time_step.RKn_simple(1,caldyn.bwd_fast_slow, dt) # forward Euler scheme 
     47scheme = time_step.RK4(None, dt) 
    5048print dt, scheme.csjl, scheme.cfjl 
    5149step = unst.caldyn_step_TRSW(mesh,scheme,nt) 
  • codes/icosagcm/devel/src/unstructured/caldyn_unstructured.F90

    r698 r749  
    3434  NUM :: tau, gamma, tau2_g, tau2_g2, g2, gm2, vreff, Rd_preff 
    3535  INTEGER :: iter 
     36  LOGICAL :: debug_hevi_solver 
    3637  DECLARE_INDICES 
    3738  NUM :: rho_ij, X_ij, Y_ij, wil, rho_c2_mik, c2_mik, ml_g2 
     
    5253#endif 
    5354 
     55  debug_hevi_solver=.FALSE. 
     56!$OMP MASTER 
     57  debug_hevi_solver = debug_hevi_solver_ 
     58!$OMP END MASTER 
     59 
    5460  START_TRACE(id_NH_geopot, 7,0,0) 
    5561#include "../kernels_unst/compute_NH_geopot.k90" 
    5662  STOP_TRACE   
     63 
     64!$OMP MASTER 
     65  debug_hevi_solver_ = debug_hevi_solver 
     66!$OMP END MASTER 
    5767 
    5868#if COLUMN 
  • codes/icosagcm/devel/src/unstructured/data_unstructured.F90

    r747 r749  
    1212  INDEX,  BIND(C) :: caldyn_thermo=thermo_theta, caldyn_eta=eta_lag, & 
    1313       caldyn_vert_variant=caldyn_vert_cons, nb_threads=0, nb_stage=0 
    14   LOGICAL(C_BOOL), BIND(C) :: hydrostatic=.TRUE., debug_hevi_solver=.TRUE. 
     14  LOGICAL(C_BOOL), BIND(C) :: hydrostatic=.TRUE. 
     15  LOGICAL(C_BOOL), BIND(C, NAME='debug_hevi_solver') :: debug_hevi_solver_=.TRUE. 
    1516 
    1617#ifdef CPP_MIXED_PREC 
Note: See TracChangeset for help on using the changeset viewer.