Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
integration-cfmesh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Community
integration-cfmesh
Commits
528c8f5c
Commit
528c8f5c
authored
2 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
COMP: define 'USE_OMP' independently from wmake rules
- the wmake rules will be slimmed down in the future
parent
08832a0f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
meshLibrary/Make/options
+5
-0
5 additions, 0 deletions
meshLibrary/Make/options
utilities/scaleMesh/scaleMesh.C
+1
-3
1 addition, 3 deletions
utilities/scaleMesh/scaleMesh.C
utilities/scaleSurfaceMesh/scaleSurfaceMesh.C
+3
-3
3 additions, 3 deletions
utilities/scaleSurfaceMesh/scaleSurfaceMesh.C
with
9 additions
and
6 deletions
meshLibrary/Make/options
+
5
−
0
View file @
528c8f5c
...
@@ -5,6 +5,11 @@ ifeq (,$(strip $(FOAM_MODULE_LIBBIN)))
...
@@ -5,6 +5,11 @@ ifeq (,$(strip $(FOAM_MODULE_LIBBIN)))
FOAM_MODULE_LIBBIN = $(FOAM_USER_LIBBIN)
FOAM_MODULE_LIBBIN = $(FOAM_USER_LIBBIN)
endif
endif
/* Define USE_OMP if -fopenmp (-qopenmp etc) found */
ifneq (,$(findstring openmp,$(COMP_OPENMP)))
COMP_OPENMP += -DUSE_OMP
endif
EXE_INC = \
EXE_INC = \
$(COMP_OPENMP) \
$(COMP_OPENMP) \
-I$(LIB_SRC)/fileFormats/lnInclude \
-I$(LIB_SRC)/fileFormats/lnInclude \
...
...
This diff is collapsed.
Click to expand it.
utilities/scaleMesh/scaleMesh.C
+
1
−
3
View file @
528c8f5c
...
@@ -66,9 +66,7 @@ int main(int argc, char *argv[])
...
@@ -66,9 +66,7 @@ int main(int argc, char *argv[])
// scale the points
// scale the points
pointFieldPMG
&
pts
=
pmg
.
points
();
pointFieldPMG
&
pts
=
pmg
.
points
();
# ifdef USE_OMP
#pragma omp parallel for schedule(dynamic, 100)
# pragma omp parallel for schedule(dynamic, 100)
# endif
forAll
(
pts
,
pointI
)
forAll
(
pts
,
pointI
)
{
{
pts
[
pointI
]
*=
scalingFactor
;
pts
[
pointI
]
*=
scalingFactor
;
...
...
This diff is collapsed.
Click to expand it.
utilities/scaleSurfaceMesh/scaleSurfaceMesh.C
+
3
−
3
View file @
528c8f5c
...
@@ -67,11 +67,11 @@ int main(int argc, char *argv[])
...
@@ -67,11 +67,11 @@ int main(int argc, char *argv[])
pointField
&
pts
=
sMod
.
pointsAccess
();
pointField
&
pts
=
sMod
.
pointsAccess
();
// scales the vertices
// scales the vertices
# ifdef USE_OMP
#pragma omp parallel for schedule(dynamic, 100)
# pragma omp parallel for schedule(dynamic, 100)
# endif
forAll
(
pts
,
pointI
)
forAll
(
pts
,
pointI
)
{
pts
[
pointI
]
*=
scalingFactor
;
pts
[
pointI
]
*=
scalingFactor
;
}
// write the mesh back on disk
// write the mesh back on disk
surface
.
writeSurface
(
outFileName
);
surface
.
writeSurface
(
outFileName
);
...
...
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