getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] [getfem-commits] branch master updated: Interface funct


From: Konstantinos Poulios
Subject: [Getfem-commits] [getfem-commits] branch master updated: Interface functions for the addition of internal variables to a model
Date: Sat, 18 Apr 2020 09:56:46 -0400

This is an automated email from the git hooks/post-receive script.

logari81 pushed a commit to branch master
in repository getfem.

The following commit(s) were added to refs/heads/master by this push:
     new 9de33b4  Interface functions for the addition of internal variables to 
a model
9de33b4 is described below

commit 9de33b40fb67be58b755716bf0b06f8cd5b32cd9
Author: Konstantinos Poulios <address@hidden>
AuthorDate: Sat Apr 18 15:56:38 2020 +0200

    Interface functions for the addition of internal variables to a model
---
 interface/src/gf_model_set.cc | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/interface/src/gf_model_set.cc b/interface/src/gf_model_set.cc
index a093ca8..288572d 100644
--- a/interface/src/gf_model_set.cc
+++ b/interface/src/gf_model_set.cc
@@ -118,6 +118,29 @@ void gf_model_set(getfemint::mexargs_in& m_in,
        );
 
 
+    /*@SET ('add im variable', @str name, @tmimd mimd)
+      Add a variable to the model linked to a @tmimd. `name` is the variable
+      name. @*/
+    sub_command
+      ("add im variable", 2, 2, 0, 0,
+       std::string name = in.pop().to_string();
+       getfem::im_data *mimd = to_meshimdata_object(in.pop());
+       md->add_im_variable(name, *mimd);
+       workspace().set_dependence(md, mimd);
+       );
+
+    /*@SET ('add internal im variable', @str name, @tmimd mimd)
+      Add a variable to the model, which is linked to a @tmimd and will be
+      condensed out during the assemblage of the tangent matrix. `name` is
+      the variable name. @*/
+    sub_command
+      ("add internal im variable", 2, 2, 0, 0,
+       std::string name = in.pop().to_string();
+       getfem::im_data *mimd = to_meshimdata_object(in.pop());
+       md->add_internal_im_variable(name, *mimd);
+       workspace().set_dependence(md, mimd);
+       );
+
     /*@SET ('add variable', @str name, sizes)
       Add a variable to the model of constant sizes. `sizes` is either a
       integer (for a scalar or vector variable) or a vector of dimensions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]