NeoPZ
TPZMaterialTranslator.cpp
Go to the documentation of this file.
1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 
7 /*
8  * File: TPZMaterialTranslator.cpp
9  * Author: thiago
10  *
11  * Created on 12 de Março de 2018, 18:51
12  */
13 
14 #include "TPZMaterialTranslator.h"
15 #include "TPZChunkInTranslation.h"
16 
18 }
19 
21 }
22 
23 void TPZMaterialTranslator::UpdateAttributes(TPZChunkInTranslation& chunk, const std::map<std::string, uint64_t>& toVersion) {
24  int fId;
25  chunk.mOldStream.Read(&fId, 1);
26  chunk.mNewStream.Write(&fId, 1);
27  REAL gBigNumber;
28  chunk.mOldStream.Read(&gBigNumber, 1);
29  chunk.mNewStream.Write(&gBigNumber, 1);
30  TPZPersistenceManager::TranslateNextPointer(chunk, toVersion); // fForcingFunction
31  TPZPersistenceManager::TranslateNextPointer(chunk, toVersion); // fForcingFunctionExact
32  TPZPersistenceManager::TranslateNextPointer(chunk, toVersion); // fTimeDependentForcingFunction
33  TPZPersistenceManager::TranslateNextPointer(chunk, toVersion); // fTimedependentFunctionExact
34  TPZPersistenceManager::TranslateNextPointer(chunk, toVersion); // fBCForcingFunction
35  TPZPersistenceManager::TranslateNextPointer(chunk, toVersion); // fTimedependentBCForcingFunction
36  bool fLinearContext;
37  chunk.mOldStream.Read(fLinearContext);
38  chunk.mNewStream.Write(fLinearContext);
39  int fNumLoadCases;
40  chunk.mOldStream.Read(&fNumLoadCases);
41  chunk.mNewStream.Write(&fNumLoadCases);
42  int fPostProcIndex;
43  chunk.mOldStream.Read(&fPostProcIndex);
44  chunk.mNewStream.Write(&fPostProcIndex);
45 }
46 
48 }
49 
virtual void Read(int *p, int howMany=1)
static void TranslateNextPointer(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
virtual void Write(const int *p, int howMany=1)
TPZContBufferedStream mOldStream
virtual void UpdateAttributes(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
TPZContBufferedStream mNewStream