Thanks Bangerth, I have managed to somehow make my code working, I now want to check whether the results make some sense.
On Tuesday, December 6, 2016 at 8:56:04 PM UTC, Wolfgang Bangerth wrote: > > On 12/06/2016 12:02 PM, BENARD KIPCHUMBA wrote: > > > > My systems (matrices and vectors ) are in block form and when I run the > > code I get the error: > > > > *The violated condition was: > > vec.size() == dof.n_dofs() > > The name and call sequence of the exception was: > > ExcDimensionMismatch (vec.size(), dof.n_dofs())* > > > > I know the source of the error, it is because of the block systems and > > therefore it outputs solution vectors having twice the size of dofs. The > > code breaks at the point of initial conditions. Am not really sure how > > to deal with this. Kindly let me have your suggestions on this. > > Just pass the whole vector, not just the individual block to the > function you're calling. > > Best > W. > > -- > ------------------------------------------------------------------------ > Wolfgang Bangerth email: [email protected] > <javascript:> > www: http://www.math.colostate.edu/~bangerth/ > -- 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.
