[cig-commits] [commit] rajesh-petsc, rajesh-petsc-schur: Added PETSc related flags, use_petsc, petsc_linear, petsc_nonlinear and the initialization of these flags (7d785cb)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 19:02:16 PST 2014


Repository : https://github.com/geodynamics/citcoms

On branches: rajesh-petsc,rajesh-petsc-schur
Link       : https://github.com/geodynamics/citcoms/compare/464e1b32299b15819f93efd98d969cddb84dfe51...f97ae655a50bdbd6dac1923a3471ee4dae178fbd

>---------------------------------------------------------------

commit 7d785cba574b6d3b72ba00ad3e25d0ffeb58137f
Author: Rajesh Kommu <rajesh.kommu at gmail.com>
Date:   Wed Aug 20 12:27:39 2014 -0700

    Added PETSc related flags, use_petsc, petsc_linear, petsc_nonlinear and the initialization of these flags


>---------------------------------------------------------------

7d785cba574b6d3b72ba00ad3e25d0ffeb58137f
 lib/Instructions.c | 5 +++++
 lib/global_defs.h  | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/lib/Instructions.c b/lib/Instructions.c
index de19336..99b60a4 100644
--- a/lib/Instructions.c
+++ b/lib/Instructions.c
@@ -786,6 +786,11 @@ void read_initial_settings(struct All_variables *E)
 
   (E->problem_settings)(E);
 
+  /* PETSc related flags */
+  input_boolean("use_petsc",&E->data.use_petsc,"on",m);
+  input_boolean("petsc_linear",&E->data.petsc_linear,"on",m);
+  input_boolean("petsc_nonlinear",&E->data.petsc_nonlinear,"off",m);
+
   check_settings_consistency(E);
   return;
 }
diff --git a/lib/global_defs.h b/lib/global_defs.h
index c44edc0..c603ce4 100644
--- a/lib/global_defs.h
+++ b/lib/global_defs.h
@@ -558,6 +558,10 @@ struct CONTROL {
     int print_convergence;
     int sdepv_print_convergence;
 
+    /* PETSc flags */
+    int use_petsc;
+    int petsc_linear;
+    int petsc_nonlinear;
 };
 
 



More information about the CIG-COMMITS mailing list