NeoPZ
TPZYCMohrCoulombPVTranslator.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: TPZYCMohrCoulombPVTranslator.cpp
9  * Author: thiago
10  *
11  * Created on 12 de Março de 2018, 15:35
12  */
13 
15 #include "TPZChunkInTranslation.h"
16 
18 }
19 
21 }
22 
23 void TPZYCMohrCoulombPVTranslator::UpdateAttributes(TPZChunkInTranslation& chunk, const std::map<std::string, uint64_t>& toVersion) {
24  REAL fPhi;
25  chunk.mOldStream.Read(&fPhi);
26  chunk.mNewStream.Write(&fPhi);
27  REAL fPsi;
28  chunk.mOldStream.Read(&fPsi);
29  chunk.mNewStream.Write(&fPsi);
30  REAL fc;
31  chunk.mOldStream.Read(&fc);
32  chunk.mNewStream.Write(&fc);
33  REAL fEpsPlasticBar;
34  chunk.mOldStream.Read(&fEpsPlasticBar);
35  chunk.mNewStream.Write(&fEpsPlasticBar);
37 }
38 
40 }
41 
virtual void Read(int *p, int howMany=1)
virtual void Write(const int *p, int howMany=1)
virtual void UpdateAttributes(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
virtual void UpdateStream(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
TPZContBufferedStream mOldStream
TPZElasticResponseTranslator tpzElasticResponseTranslator
TPZContBufferedStream mNewStream