Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
small_fem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gmsh
small_fem
Commits
30debed9
Commit
30debed9
authored
4 years ago
by
Nicolas Marsic
Browse files
Options
Downloads
Patches
Plain Diff
bug fix in CCC
parent
80134529
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
simulation/CCC.cpp
+2
-6
2 additions, 6 deletions
simulation/CCC.cpp
with
2 additions
and
6 deletions
simulation/CCC.cpp
+
2
−
6
View file @
30debed9
...
@@ -231,7 +231,7 @@ void compute(const Options& option){
...
@@ -231,7 +231,7 @@ void compute(const Options& option){
// Get solver to use ASM (if PETSc) //
// Get solver to use ASM (if PETSc) //
IS
is
[
2
];
IS
is
[
2
];
try
{
if
(
!
solver
.
compare
(
"petsc"
))
{
SolverPETSc
<
double
>&
solver
=
SolverPETSc
<
double
>&
solver
=
dynamic_cast
<
SolverPETSc
<
double
>&>
(
system
.
getSolver
());
dynamic_cast
<
SolverPETSc
<
double
>&>
(
system
.
getSolver
());
...
@@ -250,8 +250,6 @@ void compute(const Options& option){
...
@@ -250,8 +250,6 @@ void compute(const Options& option){
// Setup subsolvers
// Setup subsolvers
solver
.
setPostKSPSetUp
(
asmSubSolver
);
solver
.
setPostKSPSetUp
(
asmSubSolver
);
}
}
catch
(...){
}
// Solve //
// Solve //
cout
<<
"Solving..."
<<
endl
<<
flush
;
cout
<<
"Solving..."
<<
endl
<<
flush
;
...
@@ -310,14 +308,12 @@ void compute(const Options& option){
...
@@ -310,14 +308,12 @@ void compute(const Options& option){
}
}
// Clear PETSc stuff (if we used PETSc) //
// Clear PETSc stuff (if we used PETSc) //
try
{
if
(
!
solver
.
compare
(
"petsc"
))
{
dynamic_cast
<
SolverPETSc
<
double
>&>
(
system
.
getSolver
());
dynamic_cast
<
SolverPETSc
<
double
>&>
(
system
.
getSolver
());
ISDestroy
(
&
is
[
0
]);
ISDestroy
(
&
is
[
0
]);
ISDestroy
(
&
is
[
1
]);
ISDestroy
(
&
is
[
1
]);
}
}
catch
(...){
}
// Clear other stuff //
// Clear other stuff //
for
(
int
i
=
0
;
i
<
nPhi
;
i
++
)
for
(
int
i
=
0
;
i
<
nPhi
;
i
++
)
...
...
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