[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] [getfem-commits] branch master updated: fix a bug in ob
From: |
Yves Renard |
Subject: |
[Getfem-commits] [getfem-commits] branch master updated: fix a bug in obstacle complation in Coulomb_friction_brick_rigid_obstacle object |
Date: |
Mon, 13 Jul 2020 09:07:18 -0400 |
This is an automated email from the git hooks/post-receive script.
renard pushed a commit to branch master
in repository getfem.
The following commit(s) were added to refs/heads/master by this push:
new a757849 fix a bug in obstacle complation in
Coulomb_friction_brick_rigid_obstacle object
a757849 is described below
commit a757849aac0ec7c05fa93b353793650f28bb0ff5
Author: Yves Renard <Yves.Renard@insa-lyon.fr>
AuthorDate: Mon Jul 13 15:07:06 2020 +0200
fix a bug in obstacle complation in Coulomb_friction_brick_rigid_obstacle
object
---
src/getfem_contact_and_friction_nodal.cc | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/getfem_contact_and_friction_nodal.cc
b/src/getfem_contact_and_friction_nodal.cc
index 0f9254c..7776ec2 100644
--- a/src/getfem_contact_and_friction_nodal.cc
+++ b/src/getfem_contact_and_friction_nodal.cc
@@ -1528,10 +1528,7 @@ namespace getfem {
for (dal::bv_visitor id(dofs); !id.finished(); ++id, ++i)
if ((i % (d+1)) == 0) alpha[j++] = MM(id, id) / l;
-
getfem::ga_workspace gw;
- getfem::ga_function f(gw, obstacle);
-
size_type N = d+1;
getfem::model_real_plain_vector pt(N);
gw.add_fixed_size_constant("X", pt);
@@ -1540,6 +1537,7 @@ namespace getfem {
if (N >= 3) gw.add_macro("z", "X(3)");
if (N >= 4) gw.add_macro("w", "X(4)");
+ getfem::ga_function f(gw, obstacle);
f.compile();
gmm::resize(gap, nbc);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Getfem-commits] [getfem-commits] branch master updated: fix a bug in obstacle complation in Coulomb_friction_brick_rigid_obstacle object,
Yves Renard <=