how to install dealii-9.1.1 version using candi?? #333
Replies: 4 comments 5 replies
-
Option 1: Go into candi.cfg and change DEAL_II_VERSION to the version you want to install |
Beta Was this translation helpful? Give feedback.
-
while using step-2 i am getting error like- Project: deal.II-toolchain: Found configuration. ** i am using Ubuntu 22.04.1, is it because it needs Ubuntu 20.04. |
Beta Was this translation helpful? Give feedback.
-
In general, my suggestion would be to port your code forward to deal.II 9.4, instead of spending all of that effort to stick with a version that by now is nearly four years old. What was the problem you encountered why you could not run your code with 9.4? That should be easier to address. |
Beta Was this translation helpful? Give feedback.
-
------------------------------------------------------------------------------
An error occurred in line <132> of file
</home/newton/dealii-candi/tmp/unpack/deal.II-v9.4.2/source/dofs/dof_tools_sparsity.cc> in function
void dealii::DoFTools::make_sparsity_pattern(const dealii::DoFHandler<dim,
spacedim>&, const dealii::Table<2, dealii::DoFTools::Coupling>&,
SparsityPatternType&, const dealii::AffineConstraints&, bool,
dealii::types::subdomain_id) [with int dim = 2; int spacedim = 2;
SparsityPatternType = dealii::BlockDynamicSparsityPattern; number = double;
dealii::types::subdomain_id = unsigned int]
The violated condition was:
sparsity.n_rows() == n_dofs
Additional information:
Dimension 0 not equal to 10658.
You need to learn to read error messages. We put a lot of effort into these.
As far as error messages are concerned, this can not be improved by very much.
It says that the number of rows in the sparsity pattern is expected to be the
same as the number of DoFs. But that the former object has size zero. This is
the problem you need to address.
// BlockDynamicSparsityPattern csp(n_blocks, n_blocks);
BlockDynamicSparsityPattern csp(n_dofs_u, n_dofs_u);
This is the bug: You say that the sparsity matrix should have n_dofs_u
*blocks* (which is not what you want, you want this to be n_blocks). But each
block has size zero, so the overall size of the sparsity pattern is zero.
Best
W.
|
Beta Was this translation helpful? Give feedback.
-
Dear Sir/Ma'am,
i wrote one code in version 9.1.1 of deal ii using step-44. Now i have installed deal ii using candi but it installed the recent version(9.4.2) of deal ii.But here i am not able to run the code which i was able to run in 9.1.1. I debug the code as much i can and i successfully able to build the code but not able to run it.
Could you please let me know how to install dealii-9.1.1 version using candi.
Thank you.
Regards
Beta Was this translation helpful? Give feedback.
All reactions