Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
TurTLE
TurTLE
Commits
9f4edcbe
Commit
9f4edcbe
authored
8 years ago
by
Chichi Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
child of NSVE compiles
parent
d9a9b757
No related branches found
No related tags found
1 merge request
!21
Bugfix/nansampling
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bfps/cpp/full_code/NSVEparticles.cpp
+8
-8
8 additions, 8 deletions
bfps/cpp/full_code/NSVEparticles.cpp
bfps/cpp/full_code/NSVEparticles.hpp
+2
-2
2 additions, 2 deletions
bfps/cpp/full_code/NSVEparticles.hpp
setup.py
+1
-0
1 addition, 0 deletions
setup.py
with
11 additions
and
10 deletions
bfps/cpp/full_code/NSVEparticles.cpp
+
8
−
8
View file @
9f4edcbe
...
...
@@ -10,17 +10,17 @@ int NSVEparticles<rnumber>::initialize(void)
this
->
NSVE
<
rnumber
>::
initialize
();
this
->
ps
=
particles_system_builder
(
fs
->
cvelocity
,
// (field object)
fs
->
kk
,
// (kspace object, contains dkx, dky, dkz)
this
->
fs
->
cvelocity
,
// (field object)
this
->
fs
->
kk
,
// (kspace object, contains dkx, dky, dkz)
tracers0_integration_steps
,
// to check coherency between parameters and hdf input file (nb rhs)
(
long
long
int
)
nparticles
,
// to check coherency between parameters and hdf input file
fs
->
get_current_fname
(),
// particles input filename
std
::
string
(
"/tracers0/state/"
)
+
std
::
to_string
(
fs
->
iteration
),
// dataset name for initial input
std
::
string
(
"/tracers0/rhs/"
)
+
std
::
to_string
(
fs
->
iteration
),
// dataset name for initial input
this
->
fs
->
get_current_fname
(),
// particles input filename
std
::
string
(
"/tracers0/state/"
)
+
std
::
to_string
(
this
->
fs
->
iteration
),
// dataset name for initial input
std
::
string
(
"/tracers0/rhs/"
)
+
std
::
to_string
(
this
->
fs
->
iteration
),
// dataset name for initial input
tracers0_neighbours
,
// parameter (interpolation no neighbours)
tracers0_smoothness
,
// parameter
this
->
comm
,
fs
->
iteration
+
1
);
this
->
fs
->
iteration
+
1
);
this
->
particles_output_writer_mpi
=
new
particles_output_hdf5
<
long
long
int
,
double
,
3
,
3
>
(
MPI_COMM_WORLD
,
"tracers0"
,
...
...
@@ -32,7 +32,7 @@ int NSVEparticles<rnumber>::initialize(void)
template
<
typename
rnumber
>
int
NSVEparticles
<
rnumber
>::
step
(
void
)
{
this
->
fs
->
compute_velocity
(
fs
->
cvorticity
);
this
->
fs
->
compute_velocity
(
this
->
fs
->
cvorticity
);
this
->
fs
->
cvelocity
->
ift
();
this
->
ps
->
completeLoop
(
this
->
dt
);
this
->
NSVE
<
rnumber
>::
step
();
...
...
@@ -43,7 +43,7 @@ template <typename rnumber>
int
NSVEparticles
<
rnumber
>::
write_checkpoint
(
void
)
{
this
->
NSVE
<
rnumber
>::
write_checkpoint
();
this
->
particles_output_writer_mpi
->
open_file
(
fs
->
get_current_fname
());
this
->
particles_output_writer_mpi
->
open_file
(
this
->
fs
->
get_current_fname
());
this
->
particles_output_writer_mpi
->
save
(
this
->
ps
->
getParticlesPositions
(),
this
->
ps
->
getParticlesRhs
(),
...
...
This diff is collapsed.
Click to expand it.
bfps/cpp/full_code/NSVEparticles.hpp
+
2
−
2
View file @
9f4edcbe
...
...
@@ -37,7 +37,7 @@
#include
"particles/particles_output_hdf5.hpp"
template
<
typename
rnumber
>
class
NSVEparticles
:
public
NSVE
class
NSVEparticles
:
public
NSVE
<
rnumber
>
{
public:
...
...
@@ -56,7 +56,7 @@ class NSVEparticles: public NSVE
NSVEparticles
(
const
MPI_Comm
COMMUNICATOR
,
const
std
::
string
&
simulation_name
)
:
NSVE
(
NSVE
<
rnumber
>
(
COMMUNICATOR
,
simulation_name
){}
~
NSVEparticles
(){}
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
0
View file @
9f4edcbe
...
...
@@ -90,6 +90,7 @@ print('This is bfps version ' + VERSION)
### lists of files and MANIFEST.in
src_file_list
=
[
'
full_code/direct_numerical_simulation
'
,
'
full_code/NSVE
'
,
'
full_code/NSVEparticles
'
,
'
full_code/NSVEp
'
,
'
vorticity_equation
'
,
'
field
'
,
...
...
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