[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: |
Thu, 17 Jan 2019 07:43:48 -0500 (EST) |
branch: devel-tetsuo-code-cleanup-by-werror
commit 05b4b36304277fbd5ddc53ce71abacc57f98523b
Author: Tetsuo Koyama <address@hidden>
Date: Thu Jan 17 21:42:25 2019 +0900
Fix typo lamda to lambda
---
src/getfem/getfem_omp.h | 4 ++--
src/getfem_contact_and_friction_large_sliding.cc | 2 +-
src/getfem_omp.cc | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/getfem/getfem_omp.h b/src/getfem/getfem_omp.h
index ca1aec6..7ea8fc2 100644
--- a/src/getfem/getfem_omp.h
+++ b/src/getfem/getfem_omp.h
@@ -457,7 +457,7 @@ namespace getfem
public:
parallel_boilerplate();
- void run_lamda(std::function<void(void)> lambda);
+ void run_lambda(std::function<void(void)> lambda);
~parallel_boilerplate();
};
@@ -484,7 +484,7 @@ namespace getfem
auto boilerplate = getfem::parallel_boilerplate{}; \
pragma_op(omp parallel for) \
for (init; check; increment){ \
- boilerplate.run_lamda([&](){body;}); \
+ boilerplate.run_lambda([&](){body;}); \
} \
}
diff --git a/src/getfem_contact_and_friction_large_sliding.cc
b/src/getfem_contact_and_friction_large_sliding.cc
index c52bfd1..16cdd7e 100644
--- a/src/getfem_contact_and_friction_large_sliding.cc
+++ b/src/getfem_contact_and_friction_large_sliding.cc
@@ -1802,7 +1802,7 @@ namespace getfem {
if (state) {
- // zeta = lamda + d0 * r * n
+ // zeta = lambda + d0 * r * n
base_small_vector zeta(N);
gmm::add(lambda, gmm::scaled(n, r*d0), zeta);
diff --git a/src/getfem_omp.cc b/src/getfem_omp.cc
index 153fe2e..00f6bf9 100644
--- a/src/getfem_omp.cc
+++ b/src/getfem_omp.cc
@@ -307,7 +307,7 @@ namespace getfem{
#endif
}
- void parallel_boilerplate::run_lamda(std::function<void(void)> lambda){
+ void parallel_boilerplate::run_lambda(std::function<void(void)> lambda){
pexception->run(lambda);
}
@@ -326,11 +326,11 @@ namespace getfem{
if (iterate_over_partitions) {
for (auto &&partitions : partition_master::get()) {
(void)partitions;
- boilerplate.run_lamda(lambda);
+ boilerplate.run_lambda(lambda);
}
}
else {
- boilerplate.run_lamda(lambda);
+ boilerplate.run_lambda(lambda);
}
}
if (iterate_over_partitions) partition_master::get().rewind_partitions();