Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_pdata
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
argupta
openfpm_pdata
Commits
7d3ec8b6
Commit
7d3ec8b6
authored
7 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Latest modules
parent
b4b97718
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
example/Numerics/Vortex_in_cell/Makefile
+2
-2
2 additions, 2 deletions
example/Numerics/Vortex_in_cell/Makefile
example/Numerics/Vortex_in_cell/main_vic_petsc.cpp
+5
-1
5 additions, 1 deletion
example/Numerics/Vortex_in_cell/main_vic_petsc.cpp
openfpm_numerics
+1
-1
1 addition, 1 deletion
openfpm_numerics
with
8 additions
and
4 deletions
example/Numerics/Vortex_in_cell/Makefile
+
2
−
2
View file @
7d3ec8b6
...
...
@@ -13,10 +13,10 @@ OBJ_VIC_PETSC = main_vic_petsc.o
all
:
vic vic_petsc
vic
:
$(OBJ_VIC)
$(
CC
)
-o
$@
$^
$(
CFLAGS
)
$(
LIBS_PATH
)
$(
LIBS
)
$(
CC
)
-o
$@
$^
$(
CFLAGS
)
$(
LIBS_PATH
)
$(
LIBS
_SE2
)
vic_petsc
:
$(OBJ_VIC_PETSC)
$(
CC
)
-o
$@
$^
$(
CFLAGS
)
$(
LIBS_PATH
)
$(
LIBS
)
$(
CC
)
-o
$@
$^
$(
CFLAGS
)
$(
LIBS_PATH
)
$(
LIBS
_SE2
)
run
:
all
mpirun
-np
3 ./vic
&&
mpirun
-np
3 ./vic
...
...
This diff is collapsed.
Click to expand it.
example/Numerics/Vortex_in_cell/main_vic_petsc.cpp
+
5
−
1
View file @
7d3ec8b6
...
...
@@ -96,7 +96,7 @@
//! \cond [inclusion] \endcond
#include
"
../../../openfpm_numerics/src/
interpolation/interpolation.hpp"
#include
"interpolation/interpolation.hpp"
#include
"Grid/grid_dist_id.hpp"
#include
"Vector/vector_dist.hpp"
#include
"Matrix/SparseMatrix.hpp"
...
...
@@ -586,6 +586,7 @@ void remesh(particles_type & vd, grid_type & gr,Box<3,float> & domain)
//! \cond [remesh_part] \endcond
/*! \page Vortex_in_cell_petsc Vortex in Cell 3D
*
* # Step 5: Compute velocity from vorticity # {#vic_vel_from_vort}
...
...
@@ -1002,6 +1003,8 @@ void rk_step2(particles_type & particles)
particles
.
map
();
}
//! \cond [runge_kutta_2] \endcond
/*! \page Vortex_in_cell_petsc Vortex in Cell 3D
...
...
@@ -1039,6 +1042,7 @@ template<typename grid, typename vector> void do_step(vector & particles,
set_zero
<
vorticity
>
(
g_vort
);
inte
.
template
p2m
<
vorticity
,
vorticity
>(
particles
,
g_vort
);
g_vort
.
template
ghost_put
<
add_
,
vorticity
>();
//! \cond [do_step_p2m] \endcond
...
...
This diff is collapsed.
Click to expand it.
openfpm_numerics
@
58741708
Subproject commit
ce49653e1f5af00c5c88858c35031b0f366c5242
Subproject commit
5874170818d8c516fd4358abeae6b82eedf77224
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