[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: |
Mon, 18 Feb 2019 04:40:26 -0500 (EST) |
branch: devel-tetsuo-model_lumped_mass_matrix
commit 6fbdde8227af0205bb5b29c6e0eb17c3f5f06eda
Author: Tetsuo Koyama <address@hidden>
Date: Mon Feb 18 18:39:14 2019 +0900
add add_lumped_mass_brick_for_first_order function
---
src/getfem/getfem_models.h | 9 +++++++++
src/getfem_models.cc | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/getfem/getfem_models.h b/src/getfem/getfem_models.h
index 9c3f01c..3dd3b4c 100644
--- a/src/getfem/getfem_models.h
+++ b/src/getfem/getfem_models.h
@@ -2383,6 +2383,15 @@ namespace getfem {
const std::string &dataexpr_rho = std::string(),
size_type region = size_type(-1));
+ /** Lumped mass brick for first order.
+ Add a lumped mass matix for first order on a variable (eventually with a
specified region).
+ If the parameter $\rho$ is omitted it is assumed to be equal to 1.
+ */
+ size_type APIDECL add_lumped_mass_brick_for_first_order
+ (model &md, const mesh_im &mim, const std::string &varname,
+ const std::string &dataexpr_rho = std::string(),
+ size_type region = size_type(-1));
+
/** Basic d/dt brick ( @f$ \int \rho ((u^{n+1}-u^n)/dt).v @f$ ).
Add the standard discretization of a first order time derivative. The
parameter $rho$ is the density which could be omitted (the defaul value
diff --git a/src/getfem_models.cc b/src/getfem_models.cc
index c41e601..6754dd0 100644
--- a/src/getfem_models.cc
+++ b/src/getfem_models.cc
@@ -6403,7 +6403,7 @@ model_complex_plain_vector &
};
- size_type add_lumped_mass_matrix_for_first_order
+ size_type add_lumped_mass_brick_for_first_order
(model & md, const mesh_im &mim, const std::string &varname,
const std::string &dataexpr_rho, size_type region) {
pbrick pbr = std::make_shared<lumped_mass_brick_for_first_order>();