Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
iRMB
VirtualFluids
Commits
96b3cedb
Commit
96b3cedb
authored
4 years ago
by
Sven Marcus
Browse files
Options
Downloads
Patches
Plain Diff
Container adjustments. Convert env variable to int
parent
150d38ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Containers/VirtualFluidsCubeFlow.def
+13
-10
13 additions, 10 deletions
Containers/VirtualFluidsCubeFlow.def
Python/cubeflow/simulation.py
+1
-1
1 addition, 1 deletion
Python/cubeflow/simulation.py
with
14 additions
and
11 deletions
Containers/VirtualFluidsCubeFlow.def
+
13
−
10
View file @
96b3cedb
...
...
@@ -2,21 +2,24 @@ BootStrap: docker
From: irmb/virtualfluids-python-deps-mpich
%files
3rdParty /3rdParty
apps /apps
Python /Python
src /src
CMakeLists.txt /CMakeLists.txt
setup.py /setup.py
pyproject.toml /pyproject.toml
3rdParty 3rdParty
apps apps
CMake CMake
Python Python
src src
CMakeLists.txt CMakeLists.txt
cpu.cmake cpu.cmake
gpu.cmake gpu.cmake
setup.py setup.py
pyproject.toml pyproject.toml
%post
export PYTHONPATH=Python
python3 setup.py install
python3
/
setup.py install
%environment
export PYTHONPATH=Python
export PYTHONPATH=
/
Python
%runscript
python3 Python/
test_
cubeflow.py
python3
/
Python/cubeflow
/simulation
.py
This diff is collapsed.
Click to expand it.
Python/cubeflow/simulation.py
+
1
−
1
View file @
96b3cedb
...
...
@@ -30,7 +30,7 @@ grid_params.periodic_boundary_in_x3 = True
sim_params
=
SimulationParameters
()
sim_params
.
timestep_log_interval
=
1000
sim_params
.
number_of_timesteps
=
50000
sim_params
.
number_of_threads
=
os
.
environ
.
get
(
"
OMP_NUM_THREADS
"
,
4
)
sim_params
.
number_of_threads
=
int
(
os
.
environ
.
get
(
"
OMP_NUM_THREADS
"
,
4
)
)
def
run_simulation
(
physical_parameters
=
physical_params
,
grid_parameters
=
grid_params
,
...
...
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