Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_numerics
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
Model registry
Operate
Environments
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_numerics
Commits
3f8d2064
Commit
3f8d2064
authored
4 years ago
by
Abhinav Singh
Browse files
Options
Downloads
Patches
Plain Diff
Adding derivative y
parent
87b3f7f9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
mpi_include
+1
-1
1 addition, 1 deletion
mpi_include
mpi_libs
+1
-1
1 addition, 1 deletion
mpi_libs
src/FiniteDifference/FD_op.hpp
+2
-0
2 additions, 0 deletions
src/FiniteDifference/FD_op.hpp
src/FiniteDifference/FD_op_Tests.cpp
+5
-3
5 additions, 3 deletions
src/FiniteDifference/FD_op_Tests.cpp
with
9 additions
and
5 deletions
mpi_include
+
1
−
1
View file @
3f8d2064
-I/home/i-bird/MPI/include
\ No newline at end of file
-I
\ No newline at end of file
This diff is collapsed.
Click to expand it.
mpi_libs
+
1
−
1
View file @
3f8d2064
-Wl,-rpath -Wl,/home/i-bird/MPI/lib -Wl,--enable-new-dtags -pthread /home/i-bird/MPI/lib/libmpi.so
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/FiniteDifference/FD_op.hpp
+
2
−
0
View file @
3f8d2064
...
...
@@ -241,6 +241,8 @@ namespace FD
};
typedef
Derivative
<
0
,
2
,
CENTRAL
>
Derivative_x
;
typedef
Derivative
<
1
,
2
,
CENTRAL
>
Derivative_y
;
};
...
...
This diff is collapsed.
Click to expand it.
src/FiniteDifference/FD_op_Tests.cpp
+
5
−
3
View file @
3f8d2064
...
...
@@ -48,7 +48,7 @@ struct no_equation
BOOST_AUTO_TEST_SUITE
(
fd_op_suite_tests
)
BOOST_AUTO_TEST_CASE
(
fd_op_tests
)
{
size_t
edgeSemiSize
=
4
0
;
size_t
edgeSemiSize
=
8
0
;
const
size_t
sz
[
2
]
=
{
2
*
edgeSemiSize
+
1
,
2
*
edgeSemiSize
+
1
};
Box
<
2
,
double
>
box
({
0
,
0
},
{
2
*
M_PI
,
2
*
M_PI
});
periodicity
<
2
>
bc
({
NON_PERIODIC
,
NON_PERIODIC
});
...
...
@@ -73,19 +73,21 @@ BOOST_AUTO_TEST_SUITE(fd_op_suite_tests)
double
y
=
j
*
spacing
[
1
];
// Here fill the function value P
domain
.
template
getProp
<
0
>(
key_l
)
=
sin
(
x
)
+
sin
(
y
);
domain
.
template
getProp
<
1
>(
key_l
)
=
0
;
// Here fill the validation value for Df/Dx in property 3
domain
.
template
getProp
<
2
>(
key_l
)
=
cos
(
x
);
domain
.
template
getProp
<
2
>(
key_l
)
=
cos
(
y
);
++
it
;
}
domain
.
ghost_get
<
0
>
();
FD
::
Derivative_x
Dx
;
FD
::
Derivative_y
Dy
;
auto
v
=
FD
::
getV
<
1
>
(
domain
);
auto
P
=
FD
::
getV
<
0
>
(
domain
);
v
=
Dx
(
P
);
v
=
Dx
(
P
)
+
Dy
(
P
)
;
auto
it2
=
domain
.
getDomainIterator
();
double
worst
=
0.0
;
...
...
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