From f2e9d1aad2cea255ca626ea3653c1bf1332f95e1 Mon Sep 17 00:00:00 2001 From: Martin Genet <martin.genet@polytechnique.edu> Date: Tue, 13 Feb 2018 21:19:00 +0100 Subject: [PATCH] new default options --- fedic.py | 2 +- image_expressions_cpp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fedic.py b/fedic.py index 0022e14..95856c7 100644 --- a/fedic.py +++ b/fedic.py @@ -58,7 +58,7 @@ def fedic( images_quadrature=None, images_quadrature_from="points_count", # points_count, integral images_expressions_type="cpp", # cpp, py - images_dynamic_scaling=0, + images_dynamic_scaling=1, mesh=None, mesh_folder=None, mesh_basename=None, diff --git a/image_expressions_cpp.py b/image_expressions_cpp.py index 689f93b..c9cd767 100644 --- a/image_expressions_cpp.py +++ b/image_expressions_cpp.py @@ -91,7 +91,7 @@ public: void init_image( const char* filename, - const char* interpol_mode="'''+('''nearest''')*(im_type=="im")+('''nearest''')*(im_type=="grad")+'''", + const char* interpol_mode="'''+('''linear''')*(im_type=="im")+('''linear''')*(im_type=="grad")+'''", const double &interpol_out_value='''+('''0.''')*(im_type=="im")+('''0.''')*(im_type=="grad")+(''', const double &Z=0.''')*(im_dim==2)+''') { -- GitLab