Hello everyone,
presently, I am very new to deal.II and came across a problem which I spent
some time with but which I still do not fully understand.
Let me supply some background first:
Roughly, I wrote a program much in flavor of the examples in steps 4 to 6,
effectively solving an elliptic problem with variable coefficients.
Eventually, I want to work on a Stefan problem, which is why I am
interested in working with variational inequalities.Thus like in Step 41, I
would like to use the Trillinos AMG preconditioner.
My problem:
Inspired by Steps 31 and 41, I wanted to augment a program like Step-6 by
invoking TrilinosWrappers in order to be able to use the TrilinosAMG.
However, "make" aborts, c.f. the error.log attached.
There seems to be a problem with "TrillinosWrappers::MPI::Vectors" which is
"system_rhs" 's data type. Subsequently, system_rhs is considered not to be
declared at all.
My question:
Is it obvious that the above errors are due to some programming errors of
mine, or is there (possibly) some problem with Trilinos (12.10) itself
although Step 31 and 41 work without any problems? Actually, I think that
the interface of deal.II (8.5.0) to Trilinos is working, isn't it, so it
should be me, right?
A short answer will do, thank you very much,
Best regards,
Oliver
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
make
Scanning dependencies of target test02_tril
[ 50%] Building CXX object CMakeFiles/test02_tril.dir/test02_tril.cc.o
In file included from
.../dealII/8.5.0/include/deal.II/lac/trilinos_sparse_matrix.h:29:0,
from
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc:26:
.../dealII/8.5.0/include/deal.II/lac/trilinos_vector.h:254:11: warning:
‘dealii::TrilinosWrappers::MPI::Vector::supports_distributed_data’ is
deprecated [-Wdeprecated-declarations]
class Vector : public VectorBase
^
.../dealII/8.5.0/include/deal.II/lac/trilinos_vector.h:275:25: note:
declared here
static const bool supports_distributed_data DEAL_II_DEPRECATED =
true;
^
.../dealII/8.5.0/include/deal.II/lac/trilinos_vector.h:756:9: warning:
‘dealii::TrilinosWrappers::Vector::supports_distributed_data’ is deprecated
[-Wdeprecated-declarations]
class Vector : public VectorBase
^
.../dealII/8.5.0/include/deal.II/lac/trilinos_vector.h:777:23: note:
declared here
static const bool supports_distributed_data DEAL_II_DEPRECATED = false;
^
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc:129:3: error:
‘TrilionsWrappers’ does not name a type
TrilionsWrappers::MPI::Vector system_rhs;
^
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc: In member function
‘void Test01<dim>::setup_system()’:
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc:192:3: error:
‘system_rhs’ was not declared in this scope
system_rhs.reinit (solution_index_set, MPI_COMM_WORLD);
^
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc: In member function
‘void Test01<dim>::assemble_system()’:
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc:202:3: error:
‘system_rhs’ was not declared in this scope
system_rhs = 0;
^
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc: In member function
‘void Test01<dim>::solve()’:
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc:290:42: error:
‘system_rhs’ was not declared in this scope
solver.solve (system_matrix, solution, system_rhs,
^
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc: In function ‘int
main(int, char**)’:
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc:408:23: error:
‘Test01’ is not a namespace-name
using namespace Test01;
^
.../dealII/8.5.0/examples/test02/tril/test02_tril.cc:408:29: error:
expected namespace-name before ‘;’ token
using namespace Test01;
^
[ 50%] Building CXX object CMakeFiles/test02_tril.dir/test02_tril.cc.o
CMakeFiles/test02_tril.dir/build.make:62: die Regel für Ziel
„CMakeFiles/test02_tril.dir/test02_tril.cc.o“ scheiterte
CMakeFiles/Makefile2:195: die Regel für Ziel „CMakeFiles/test02_tril.dir/all“
scheiterte
Makefile:83: die Regel für Ziel „all“ scheiterte