[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] (no subject)
From: |
Tetsuo Koyama |
Subject: |
[Getfem-commits] (no subject) |
Date: |
Fri, 17 Jan 2020 02:33:28 -0500 (EST) |
branch: devel-tetsuo-fix-type
commit 91b60e9bc232d643b0a4f539d3b2ee2f78d7eafc
Author: Tetsuo Koyama <address@hidden>
AuthorDate: Fri Jan 17 15:24:56 2020 +0900
:hammer_and_wrench: explicit scalar_type define
---
src/getfem_models.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/getfem_models.cc b/src/getfem_models.cc
index 82a29fe..5b5d62b 100644
--- a/src/getfem_models.cc
+++ b/src/getfem_models.cc
@@ -1403,7 +1403,7 @@ namespace getfem {
scalar_type a2 = (scalar_type(1) - scalar_type(2)*beta)
/ (scalar_type(2)*beta);
scalar_type b0 = gamma/(beta*dt), b1 = (beta-gamma)/beta;
- scalar_type b2 = dt*(1-gamma/(scalar_type(2)*beta));
+ scalar_type b2 = dt*(scalar_type(1)-gamma/(scalar_type(2)*beta));
md.set_factor_of_variable(V, b0);
md.set_factor_of_variable(A, a0);