This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

PETSc NASM solver error

0 votes

Hello,
I would like to solve my nonlinear problem by using NASM.
After setting params as following:

NonlinearVariationalProblem problem(F, u, bc, J);

  // Set up the non-linear solver
  NonlinearVariationalSolver solver(problem);
  solver.parameters["nonlinear_solver"]                   = "snes";
  solver.parameters("snes_solver")["method"]              = "nasm" ; 
  solver.parameters("snes_solver")["linear_solver"]       = "bicgstab";
  solver.parameters("snes_solver")["report"]              = true;
  solver.parameters("snes_solver")["error_on_nonconvergence"] = false;

solver.solve();

I get error:

[0]PETSC ERROR: --------------------- Error Message ------------------------------------
[0]PETSC ERROR: Object is in wrong state!
[0]PETSC ERROR: Decomposition defined only after DMSetUp!
[0]PETSC ERROR: ------------------------------------------------------------------------

[0]PETSC ERROR: Petsc Release Version 3.4.5, Jun, 29, 2014
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Unknown Name on a darwin14.4.0-cxx-opt named alenas-MacBook-Pro.local by alenakopanicakova Wed May 11 22:48:47 2016
[0]PETSC ERROR: Libraries linked from /Users/johannr/fenics-1.6.0/local/lib
[0]PETSC ERROR: Configure run at Wed Aug 12 17:53:18 2015
[0]PETSC ERROR: Configure options --prefix=/Users/johannr/fenics-1.6.0/local COPTFLAGS=-O2 --with-debugging=0 --with-clanguage=cxx --with-c-support=1 --with-blas-lapack-dir=/usr --with-umfpack=1 --with-umfpack-include=/Users/johannr/fenics-1.6.0/local/include/suitesparse --with-umfpack-lib="[/Users/johannr/fenics-1.6.0/local/lib/libumfpack.a,/Users/johannr/fenics-1.6.0/local/lib/libamd.a]" --with-spooles=1 --with-spooles-include=/Users/johannr/fenics-1.6.0/local/include --with-spooles-lib=/Users/johannr/fenics-1.6.0/local/lib/libspooles.a --with-ptscotch=1 --with-ptscotch-dir=/Users/johannr/fenics-1.6.0/local --with-hdf5=1 --with-hdf5-dir=/Users/johannr/fenics-1.6.0/local --with-x=0 -with-x11=0 --with-fortran=0 --with-shared-libraries=1 PETSC_DIR=/Users/johannr/fenics-1.6.0/fenics-superbuild/build-fenics/CMakeExternals/src/PETSc PETSC_ARCH=darwin14.4.0-cxx-opt
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: DMCreateDomainDecomposition() line 1316 in /Users/johannr/fenics-1.6.0/fenics-superbuild/build-fenics/CMakeExternals/src/PETSc/src/dm/interface/dm.c

How should it be properly set up?

thanks!

asked May 11, 2016 by pepo_1 FEniCS Novice (280 points)
...