Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_pdata
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_pdata
Commits
8a6af80b
Commit
8a6af80b
authored
Jul 12, 2017
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing update site for the dev version
parent
7d3ec8b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
example/Numerics/Vortex_in_cell/main_vic_petsc.cpp
example/Numerics/Vortex_in_cell/main_vic_petsc.cpp
+12
-2
update
update
+1
-1
No files found.
example/Numerics/Vortex_in_cell/main_vic_petsc.cpp
View file @
8a6af80b
...
...
@@ -477,18 +477,26 @@ void helmotz_hodge_projection(grid_type & gr, const Box<3,float> & domain, petsc
//! \cond [solve_petsc] \endcond
timer
tm_solve
;
if
(
init
==
true
)
{
// Set the conjugate-gradient as method to solve the linear solver
solver
.
setSolver
(
KSPBCGS
);
// Set the absolute tolerance to determine that the method is converged
solver
.
setAbsTol
(
0.1
);
solver
.
setAbsTol
(
0.
00
1
);
// Set the maximum number of iterations
solver
.
setMaxIter
(
500
);
timer
tm_solve
;
solver
.
setPreconditioner
(
PCHYPRE_BOOMERAMG
);
solver
.
setPreconditionerAMG_nl
(
6
);
solver
.
setPreconditionerAMG_maxit
(
1
);
solver
.
setPreconditionerAMG_relax
(
"SOR/Jacobi"
);
solver
.
setPreconditionerAMG_cycleType
(
"V"
,
0
,
4
);
solver
.
setPreconditionerAMG_coarsenNodalType
(
0
);
solver
.
setPreconditionerAMG_coarsen
(
"HMIS"
);
tm_solve
.
start
();
// Give to the solver A and b, return x, the solution
...
...
@@ -498,7 +506,9 @@ void helmotz_hodge_projection(grid_type & gr, const Box<3,float> & domain, petsc
}
else
{
tm_solve
.
start
();
solver
.
solve
(
x_
,
fd
.
getB
());
tm_solve
.
stop
();
}
// copy the solution x to the grid psi
...
...
update
View file @
8a6af80b
http://openfpm.mpi-cbg.de/upload/update_
0.8
http://openfpm.mpi-cbg.de/upload/update_
dev
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