From d4610edfd5c01b98144a5b8955ed118f73d4022c Mon Sep 17 00:00:00 2001 From: David <forenkram@gmx.de> Date: Fri, 14 Aug 2020 16:57:47 +0200 Subject: [PATCH] revert most of the interpolates --- LDDsimulation/LDDsimulation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LDDsimulation/LDDsimulation.py b/LDDsimulation/LDDsimulation.py index 984736a..33cb47c 100644 --- a/LDDsimulation/LDDsimulation.py +++ b/LDDsimulation/LDDsimulation.py @@ -1052,7 +1052,7 @@ class LDDsimulation(object): f_expr = subdomain.source[phase] f_expr.t = timestep source.update( - {phase: df.interpolate( + {phase: df.project( f_expr, subdomain.function_space["pressure"][phase] ) } @@ -1092,7 +1092,7 @@ class LDDsimulation(object): exact_capillary_pressure.vector().set_local(pc_temp) exact_capillary_pressure.rename("pc_exact", "pc_exact") file.write(exact_capillary_pressure, timestep) - saturation_w = df.interpolate( + saturation_w = df.project( S(exact_capillary_pressure), subdomain.function_space["pressure"]["wetting"] ) @@ -1100,7 +1100,7 @@ class LDDsimulation(object): saturation_w.rename("Sw_exact", "Sw_exact") file.write(saturation_w, timestep) # S_nw = 1-S(exact_capillary_pressure).vector().get_local() - saturation_nw = df.interpolate( + saturation_nw = df.project( 1-S(exact_capillary_pressure), subdomain.function_space["pressure"]["wetting"] ) -- GitLab