maxdim(v.size()),
val(0)
{
- if (dim)
+ if (dim != 0)
{
val = new Number[maxdim];
Assert (val != 0, ExcOutOfMemory());
// maxdim(v.size()),
// val(0)
// {
-// if (dim)
+// if (dim != 0)
// {
// val = new Number[maxdim];
// Assert (val != 0, ExcOutOfMemory());
maxdim(v.size()),
val(0)
{
- if (dim)
+ if (dim != 0)
{
val = new Number[maxdim];
Assert (val != 0, ExcOutOfMemory());
template <typename Number>
Vector<Number>::Vector (const PETScWrappers::MPI::Vector &v)
:
- dim(v.size()),
- maxdim(v.size()),
+ dim(0),
+ maxdim(0),
val(0)
{
- if (dim)
+ if (v.size() != 0)
{
// do this in a two-stage process:
// first convert to a sequential petsc
{
if (v.size() != dim)
reinit (v.size(), true);
- if (dim)
+ if (dim != 0)
{
// get a representation of the vector
// and copy it
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams