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
2bd21b6b
Commit
2bd21b6b
authored
9 years ago
by
Chichi Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
expand class prototype for rFFTW_interpolator
parent
3f40be27
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bfps/cpp/rFFTW_interpolator.hpp
+27
-1
27 additions, 1 deletion
bfps/cpp/rFFTW_interpolator.hpp
with
27 additions
and
1 deletion
bfps/cpp/rFFTW_interpolator.hpp
+
27
−
1
View file @
2bd21b6b
...
@@ -44,9 +44,17 @@ template <class rnumber, int interp_neighbours>
...
@@ -44,9 +44,17 @@ template <class rnumber, int interp_neighbours>
class
rFFTW_interpolator
class
rFFTW_interpolator
{
{
public:
public:
/* size of field to interpolate */
ptrdiff_t
field_size
;
ptrdiff_t
field_size
;
/* pointer to polynomial function */
base_polynomial_values
compute_beta
;
base_polynomial_values
compute_beta
;
/* descriptor of field to interpolate */
field_descriptor
<
rnumber
>
*
descriptor
;
field_descriptor
<
rnumber
>
*
descriptor
;
/* pointers to fields that are to be interpolated
* */
rnumber
*
f0
,
*
f1
,
*
temp
;
rnumber
*
f0
,
*
f1
,
*
temp
;
/* physical parameters of field */
/* physical parameters of field */
...
@@ -61,7 +69,25 @@ class rFFTW_interpolator
...
@@ -61,7 +69,25 @@ class rFFTW_interpolator
base_polynomial_values
BETA_POLYS
);
base_polynomial_values
BETA_POLYS
);
~
rFFTW_interpolator
();
~
rFFTW_interpolator
();
void
operator
()(
double
t
,
int
*
__restrict__
xg
,
double
*
__restrict__
xx
,
double
*
__restrict__
dest
,
int
*
deriv
=
NULL
);
/* map real locations to grid coordinates */
void
get_grid_coordinates
(
const
double
*
__restrict__
x
,
const
int
*
__restrict__
xg
,
const
double
*
__restrict__
xx
);
/* interpolate field at an array of locations */
void
sample
(
const
int
nparticles
,
const
double
t
,
const
double
*
__restrict__
x
,
const
double
*
__restrict__
y
,
const
int
*
deriv
=
NULL
);
/* interpolate 1 point */
void
operator
()(
const
double
t
,
const
int
*
__restrict__
xg
,
const
double
*
__restrict__
xx
,
const
double
*
__restrict__
dest
,
const
int
*
deriv
=
NULL
);
int
read_rFFTW
(
void
*
src
);
int
read_rFFTW
(
void
*
src
);
};
};
...
...
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