From 52e260106138d480fd7f3f0f9f2547938a41e787 Mon Sep 17 00:00:00 2001 From: Jean-Matthieu Etancelin <jean-matthieu.etancelin@imag.fr> Date: Wed, 20 Feb 2013 16:08:57 +0000 Subject: [PATCH] Update examples to handle a user given precision --- Examples/levelSet2D.py | 5 ++++- Examples/levelSet3D.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Examples/levelSet2D.py b/Examples/levelSet2D.py index 248e08300..87fb8929d 100644 --- a/Examples/levelSet2D.py +++ b/Examples/levelSet2D.py @@ -58,7 +58,10 @@ def run(nb=257): src=['./levelSet2D.cl'], io=pp.Printer(fields=[scal, velo], frequency=outputModulo, - outputPrefix=outputFilePrefix)) + outputPrefix=outputFilePrefix), + precision=pp.constants.PARMES_REAL_GPU + #precision=pp.constants.PARMES_DOUBLE_GPU + ) pb.initSolver() t1 = time.time() diff --git a/Examples/levelSet3D.py b/Examples/levelSet3D.py index ceea32c9c..8604f6c62 100644 --- a/Examples/levelSet3D.py +++ b/Examples/levelSet3D.py @@ -42,7 +42,10 @@ def run(nb=257): ## Setting solver to Problem pb.setSolver(finalTime, timeStep, 'gpu', src=['./levelSet3D.cl'], - io=pp.Printer(fields=[scal], frequency=outputModulo, outputPrefix=outputFilePrefix)) + io=pp.Printer(fields=[scal], frequency=outputModulo, outputPrefix=outputFilePrefix), + precision=pp.constants.PARMES_REAL_GPU + #precision=pp.constants.PARMES_DOUBLE_GPU + ) pb.initSolver() t1 = time.time() -- GitLab