Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_numerics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argupta
openfpm_numerics
Commits
8980f2a5
Commit
8980f2a5
authored
Jul 03, 2017
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverting to previous interpolation untill clarification
parent
0f84683a
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
757 additions
and
359 deletions
+757
-359
src/Solvers/petsc_solver.hpp
src/Solvers/petsc_solver.hpp
+31
-0
src/interpolation/interpolation.hpp
src/interpolation/interpolation.hpp
+96
-358
src/interpolation/interpolation_broken.hpp
src/interpolation/interpolation_broken.hpp
+629
-0
src/interpolation/interpolation_unit_tests.hpp
src/interpolation/interpolation_unit_tests.hpp
+1
-1
No files found.
src/Solvers/petsc_solver.hpp
View file @
8980f2a5
...
...
@@ -717,6 +717,23 @@ class petsc_solver<double>
KSPDestroy
(
&
ksp
);
}
/*! \brief Return the norm error of the solution
*
* \param x_ the solution
* \param b_ the right-hand-side
*
* \return the solution error
*
*/
static
solError
getSolNormError
(
const
Vec
&
b_
,
const
Vec
&
x_
,
KSP
ksp
)
{
Mat
A_
;
Mat
P_
;
KSPGetOperators
(
ksp
,
&
A_
,
&
P_
);
return
getSolNormError
(
A_
,
b_
,
x_
);
}
/*! \brief Return the norm error of the solution
*
* \param A_ the matrix that identity the linear system
...
...
@@ -1259,6 +1276,20 @@ public:
return
getSolNormError
(
A
.
getMat
(),
b
.
getVec
(),
x
.
getVec
());
}
/*! \brief It return the resiual error
*
* \param A Sparse matrix
* \param x solution
* \param b right-hand-side
*
* \return the solution error norms
*
*/
solError
get_residual_error
(
const
Vector
<
double
,
PETSC_BASE
>
&
x
,
const
Vector
<
double
,
PETSC_BASE
>
&
b
)
{
return
getSolNormError
(
b
.
getVec
(),
x
.
getVec
(),
ksp
);
}
/*! \brief Here we invert the matrix and solve the system
*
* \param A sparse matrix
...
...
src/interpolation/interpolation.hpp
View file @
8980f2a5
This diff is collapsed.
Click to expand it.
src/interpolation/interpolation_broken.hpp
0 → 100644
View file @
8980f2a5
This diff is collapsed.
Click to expand it.
src/interpolation/interpolation_unit_tests.hpp
View file @
8980f2a5
...
...
@@ -9,8 +9,8 @@
#define OPENFPM_NUMERICS_SRC_INTERPOLATION_INTERPOLATION_UNIT_TESTS_HPP_
#include "interpolation/mp4_kernel.hpp"
#include "interpolation/interpolation.hpp"
#include "interpolation/z_spline.hpp"
#include "interpolation.hpp"
BOOST_AUTO_TEST_SUITE
(
interpolation_test
)
...
...
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