Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argupta
openfpm_pdata
Commits
7d3ec8b6
Commit
7d3ec8b6
authored
Jul 12, 2017
by
incardon
Browse files
Latest modules
parent
b4b97718
Changes
3
Hide whitespace changes
Inline
Side-by-side
example/Numerics/Vortex_in_cell/Makefile
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
...
...
example/Numerics/Vortex_in_cell/main_vic_petsc.cpp
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
...
...
openfpm_numerics
@
58741708
Subproject commit
ce49653e1f5af00c5c88858c35031b0f366c5242
Subproject commit
5874170818d8c516fd4358abeae6b82eedf77224
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment