[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] [getfem-commits] branch master updated: Whitespace and
From: |
Konstantinos Poulios |
Subject: |
[Getfem-commits] [getfem-commits] branch master updated: Whitespace and typo fixes |
Date: |
Wed, 06 Mar 2024 17:28:49 -0500 |
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 5627f987 Whitespace and typo fixes
5627f987 is described below
commit 5627f987bc593d6eda7dd1f876f7798501132297
Author: Konstantinos Poulios <logari81@gmail.com>
AuthorDate: Wed Mar 6 23:28:38 2024 +0100
Whitespace and typo fixes
---
CMakeLists.txt | 2 +-
interface/src/gf_global_function.cc | 36 ++++++++++++++++++------------------
src/getfem_fem.cc | 4 ++--
3 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ff2cdd8..ac5a9e12 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,7 +38,7 @@ option(ENABLE_MUMPS "Enable MUMPS support" ON) # might be
turned off by cmak
# Configure option for enabling/disabling multithreaded BLAS (requires the dl
library)
option(ENABLE_MULTITHREADED_BLAS "Enable multithreaded blas support" OFF)
-option(BUILD_SHARED_LIBS "Build libraries as SHARED, equivalent to
BUILD_LYBRARY_TYPE=SHARED" ON)
+option(BUILD_SHARED_LIBS "Build libraries as SHARED, equivalent to
BUILD_LIBRARY_TYPE=SHARED" ON)
set(BUILD_LIBRARY_TYPE "SHARED" CACHE STRING
"Type of library to build, choose among SHARED, STATIC,
STATIC_BUNDLE_DEPS")
set_property(CACHE BUILD_LIBRARY_TYPE PROPERTY STRINGS
diff --git a/interface/src/gf_global_function.cc
b/interface/src/gf_global_function.cc
index 6181c998..202023c0 100644
--- a/interface/src/gf_global_function.cc
+++ b/interface/src/gf_global_function.cc
@@ -42,8 +42,8 @@ using namespace getfemint;
struct sub_gf_globfunc : virtual public dal::static_stored_object {
int arg_in_min, arg_in_max, arg_out_min, arg_out_max;
virtual void run(getfemint::mexargs_in& in,
- getfemint::mexargs_out& out,
- getfem::pxy_function &ggf) = 0;
+ getfemint::mexargs_out& out,
+ getfem::pxy_function &ggf) = 0;
};
typedef std::shared_ptr<sub_gf_globfunc> psub_command;
@@ -52,21 +52,21 @@ typedef std::shared_ptr<sub_gf_globfunc> psub_command;
template <typename T> static inline void dummy_func(T &) {}
#define sub_command(name, arginmin, arginmax, argoutmin, argoutmax, code) { \
- struct subc : public sub_gf_globfunc { \
- virtual void run(getfemint::mexargs_in& in, \
- getfemint::mexargs_out& out, \
- getfem::pxy_function &ggf) \
- { dummy_func(in); dummy_func(out); code }
\
- }; \
- psub_command psubc = std::make_shared<subc>(); \
- psubc->arg_in_min = arginmin; psubc->arg_in_max = arginmax;
\
- psubc->arg_out_min = argoutmin; psubc->arg_out_max = argoutmax; \
- subc_tab[cmd_normalize(name)] = psubc; \
+ struct subc : public sub_gf_globfunc { \
+ virtual void run(getfemint::mexargs_in& in, \
+ getfemint::mexargs_out& out, \
+ getfem::pxy_function &ggf) \
+ { dummy_func(in); dummy_func(out); code } \
+ }; \
+ psub_command psubc = std::make_shared<subc>(); \
+ psubc->arg_in_min = arginmin; psubc->arg_in_max = arginmax; \
+ psubc->arg_out_min = argoutmin; psubc->arg_out_max = argoutmax; \
+ subc_tab[cmd_normalize(name)] = psubc; \
}
void gf_global_function(getfemint::mexargs_in& m_in,
- getfemint::mexargs_out& m_out) {
+ getfemint::mexargs_out& m_out) {
typedef std::map<std::string, psub_command > SUBC_TAB;
static SUBC_TAB subc_tab;
@@ -104,9 +104,9 @@ void gf_global_function(getfemint::mexargs_in& m_in,
std::string sgrad = "[0;0]";
std::string shess = "[0,0;0,0]";
if (in.remaining() && in.front().is_string())
- sgrad = in.pop().to_string();
+ sgrad = in.pop().to_string();
if (in.remaining() && in.front().is_string())
- shess = in.pop().to_string();
+ shess = in.pop().to_string();
ggf = std::make_shared<getfem::parser_xy_function>(sval,sgrad,shess);
);
@@ -143,14 +143,14 @@ void gf_global_function(getfemint::mexargs_in& m_in,
SUBC_TAB::iterator it = subc_tab.find(cmd);
if (it != subc_tab.end()) {
check_cmd(cmd, it->first.c_str(), m_in, m_out, it->second->arg_in_min,
- it->second->arg_in_max, it->second->arg_out_min,
- it->second->arg_out_max);
+ it->second->arg_in_max, it->second->arg_out_min,
+ it->second->arg_out_max);
it->second->run(m_in, m_out, ggf);
}
else bad_cmd(init_cmd);
m_out.pop().from_object_id(store_global_function_object(ggf),
- GLOBAL_FUNCTION_CLASS_ID);
+ GLOBAL_FUNCTION_CLASS_ID);
}
diff --git a/src/getfem_fem.cc b/src/getfem_fem.cc
index 1dd4698c..2cc58661 100644
--- a/src/getfem_fem.cc
+++ b/src/getfem_fem.cc
@@ -2210,8 +2210,8 @@ namespace getfem {
}
// Brezzi-Douglas-Marini Element on simplices, dimension d and degree k=1 or
2
- // The orientation of the normal component dof is selected in comparaison to
- // a the fixed direction (pi, pi^2, pi^3) arbitrarily chosen.
+ // The orientation of the normal component dof is selected in comparison to
+ // the fixed direction (pi, pi^2, pi^3) arbitrarily chosen.
// The definition of RTk is
// BDMk = (Pk)^d
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Getfem-commits] [getfem-commits] branch master updated: Whitespace and typo fixes,
Konstantinos Poulios <=