Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Multiphysics 0471
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Denis Louis
Multiphysics 0471
Commits
4fcea1a3
Commit
4fcea1a3
authored
3 years ago
by
Boman Romain
Browse files
Options
Downloads
Patches
Plain Diff
add msvc compatibility
parent
cf110c27
No related branches found
Branches containing commit
No related tags found
2 merge requests
!7
Coupling
,
!5
Optimization du code FEM
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
srcs/FEM/my_code.cpp
+11
-0
11 additions, 0 deletions
srcs/FEM/my_code.cpp
with
11 additions
and
0 deletions
srcs/FEM/my_code.cpp
+
11
−
0
View file @
4fcea1a3
#ifdef _MSC_VER
#include
<gmsh.h_cwrap>
// gmsh main header
#else
#include
<gmsh.h>
// gmsh main header
#endif
#include
<iostream>
// for std::cout
#include
<map>
#include
<sstream>
// for std::stringstream
...
...
@@ -181,7 +186,13 @@ void Loop_K_F(const Eigen::Matrix<double, 3, 3> H_matrix, const double rho, cons
double
test1
=
omp_get_wtime
();
//Eigen::setNbThreads(1);
#pragma omp parallel for
#ifdef _MSC_VER
// https://github.com/tesseract-ocr/tesseract/issues/3285
// OpenMP 2.0 standard is enforced - we may use /openmp:llvm and keep size_t
for
(
int
el
=
0
;
el
<
elementTags
[
i
].
size
();
el
++
){
#else
for
(
std
::
size_t
el
=
0
;
el
<
elementTags
[
i
].
size
();
el
++
){
#endif
// elemental K matrix and f vector initialization
Eigen
::
Matrix
<
double
,
Eigen
::
Dynamic
,
Eigen
::
Dynamic
>
K_matrix
(
2
*
numNodes
,
2
*
numNodes
);
std
::
vector
<
double
>
f_vector
(
2
*
numNodes
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment