Salome HOME
cleaning of interpolZ. See EDF bugtracker #16280
[modules/hydro.git] / doc / salome / examples / h015_normalCaseManualTelemac.py
index 1929b28c6bdccf21b50537e768ebf6574b4c92a4..93caed24f483cb4ba56462dec261a74e79019f8e 100644 (file)
@@ -486,7 +486,7 @@ if salome.sg.hasDesktop():
 # --- Z interpolation with HYDRO
 #----------------------
 
-from salome.hydrotools.interpolZ import interpolZ, createZfield2
+from salome.hydrotools.interpolZ import interpolZ
 from salome.hydrotools.controls import controlStatZ
 
 # --- case name in HYDRO
@@ -502,9 +502,13 @@ dicoGroupeRegion= dict(litMineur  = 'garonne_1_litMineur',
                        )
 # --- value to use for Z when the node is not in a region (used to detect problems)
 zUndef = 80
+# --- interpolation Method: 0 = nearest point on bathymetry (default), 1 = linear interpolation
+interpolMethod = 0
+# --- produce a 3D mesh (Z set to its value instead of 0
+m3d = True
 
 # --- Z interpolation on the bathymety/altimetry on the mesh nodes
-statz = interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef)
+statz = interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef, interpolMethod, m3d)
 #print statz
 refstatz = {'riveDroite': (10.88, 32.61, 24.17, 5.12, 17.57, 31.33, 0.25),
             'riveGauche': (7.72, 71.86, 24.51, 12.18, 12.90, 60.36, 0.25),