Liebe Gitlab-Nutzer, lieber Gitlab-Nutzer,
es ist nun möglich sich mittels des ZIH-Logins/LDAP an unserem Dienst anzumelden. Die Konten der externen Nutzer:innen sind über den Reiter "Standard" erreichbar.
Die Administratoren


Dear Gitlab user,
it is now possible to log in to our service using the ZIH login/LDAP. The accounts of external users can be accessed via the "Standard" tab.
The administrators

SystemVector.cc 893 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//
// Software License for AMDiS
//
// Copyright (c) 2010 Dresden University of Technology 
// All rights reserved.
// Authors: Simon Vey, Thomas Witkowski et al.
//
// This file is part of AMDiS
//
// See also license.opensource.txt in the distribution.


#include "SystemVector.h"
#include "Serializer.h"

namespace AMDiS {

  void SystemVector::serialize(std::ostream &out) 
  {
20
    int size = static_cast<int>(vectors.size());
21 22 23 24 25 26 27 28
    SerUtil::serialize(out, size);
    for (int i = 0; i < size; i++)
      vectors[i]->serialize(out);
  }


  void SystemVector::deserialize(std::istream &in) 
  {
29
    int size, oldSize = static_cast<int>(vectors.size());
30 31 32 33 34 35 36 37 38
    SerUtil::deserialize(in, size);
    vectors.resize(size);
    for (int i = oldSize; i < size; i++)
      vectors[i] = new DOFVector<double>(feSpace[i], "");
    for (int i = 0; i < size; i++)
      vectors[i]->deserialize(in);
  }

}