NeoPZ
TPZPlasticStepPVTranslator.h
Go to the documentation of this file.
1 /*
2  * File: TPZPlasticStepPVTranslator.h
3  * Author: thiago
4  *
5  * Created on 12 de Março de 2018, 15:46
6  */
7 
8 #ifndef TPZPLASTICSTEPPVTRANSLATOR_H
9 #define TPZPLASTICSTEPPVTRANSLATOR_H
10 
11 #include "TPZChunkTranslator.h"
13 
14 template <typename YC_Translator, typename ER_Translator>
16 public:
19 
20  virtual void UpdateAttributes(TPZChunkInTranslation& chunk, const std::map<std::string, uint64_t>& toVersion);
21 
23 private:
24  YC_Translator yc_Translator;
25  ER_Translator er_Translator;
27 };
28 
29 template <typename YC_Translator, typename ER_Translator>
31 
32 }
33 
34 template <typename YC_Translator, typename ER_Translator>
36 
37 }
38 
39 template <typename YC_Translator, typename ER_Translator>
40 void TPZPlasticStepPVTranslator<YC_Translator, ER_Translator>::UpdateAttributes(TPZChunkInTranslation& chunk, const std::map<std::string, uint64_t>& toVersion){
41  yc_Translator.UpdateStream(chunk, toVersion);
42  er_Translator.UpdateStream(chunk, toVersion);
43  REAL fResTol;
44  chunk.mOldStream.Read(&fResTol);
45  chunk.mNewStream.Write(&fResTol);
46  int fMaxNewton;
47  chunk.mOldStream.Read(&fMaxNewton);
48  chunk.mNewStream.Write(&fMaxNewton);
50 }
51 
52 template <typename YC_Translator, typename ER_Translator>
54 }
55 
56 #endif /* TPZPLASTICSTEPPVTRANSLATOR_H */
57 
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)
TPZContBufferedStream mOldStream
TPZPlasticStateTranslator< STATE > tpzPlasticStateTranslatorSTATE
virtual void UpdateStream(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
TPZContBufferedStream mNewStream