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

ParallelProblemStatBase.cc 1.48 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//
// 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 "parallel/ParallelProblemStatBase.h"
#include "parallel/MeshDistributor.h"
#include "parallel/MpiHelper.h"
16
#include "Global.h"
17 18 19 20 21 22 23 24 25

namespace AMDiS {

  void ParallelProblemStatBase::buildAfterCoarsen(AdaptInfo *adaptInfo, Flag flag,
						  bool assembleMatrix,
						  bool assembleVector)
  {
    FUNCNAME("ParallelProblemStatBase::buildAfterCoarsen()");

26 27 28
    TEST_EXIT_DBG(MeshDistributor::globalMeshDistributor != NULL)
      ("Should not happen!\n");
    MeshDistributor::globalMeshDistributor->checkMeshChange();
29 30 31
    ProblemStatSeq::buildAfterCoarsen(adaptInfo, flag, 
				      assembleMatrix, 
				      assembleVector);
32 33

    double vm, rss;
34 35 36
    processMemUsage(vm, rss);   
    vm /= 1024.0;
    rss /= 1024.0;
37
    
38
    MSG("My memory usage is VM = %.1f MB    RSS = %.1f MB\n", vm, rss);
39 40 41
    
    mpi::globalAdd(vm);
    mpi::globalAdd(rss);
42

43
    MSG("Overall memory usage is VM = %.1f MB    RSS = %.1f MB\n", vm, rss);
44 45 46
  }


47 48 49
  void ParallelProblemStatBase::initialize(Flag initFlag,
					   ProblemStatSeq *adoptProblem,
					   Flag adoptFlag)
50
  {
51 52 53
    ProblemStatSeq::initialize(initFlag, adoptProblem, adoptFlag);

    MeshDistributor::addProblemStatGlobal(this);
54

55
    meshDistributor = MeshDistributor::globalMeshDistributor;
56 57 58 59
  }

  
}