@@ -105,18 +105,18 @@ namespace Opm {
105105 : datum_depth(record.getItem<ParserKeywords::STREQUIL::DATUM_DEPTH>().getSIDouble(0 ))
106106 , datum_posx(record.getItem<ParserKeywords::STREQUIL::DATUM_POSX>().getSIDouble(0 ))
107107 , datum_posy(record.getItem<ParserKeywords::STREQUIL::DATUM_POSY>().getSIDouble(0 ))
108- , stress_xx( record.getItem<ParserKeywords::STREQUIL::STRESSXX>().getSIDouble(0 ))
109- , stress_xx_grad( record.getItem<ParserKeywords::STREQUIL::STRESSXXGRAD >().getSIDouble(0 ))
110- , stress_yy( record.getItem<ParserKeywords::STREQUIL::STRESSYY >().getSIDouble(0 ))
111- , stress_yy_grad( record.getItem<ParserKeywords::STREQUIL::STRESSYYGRAD >().getSIDouble(0 ))
112- , stress_zz( record.getItem<ParserKeywords::STREQUIL::STRESSZZ >().getSIDouble(0 ))
113- , stress_zz_grad( record.getItem<ParserKeywords::STREQUIL::STRESSZZGRAD >().getSIDouble(0 ))
114- , stress_xy( record.getItem<ParserKeywords::STREQUIL::STRESSXY >().getSIDouble(0 ))
115- , stress_xy_grad( record.getItem<ParserKeywords::STREQUIL::STRESSXYGRAD >().getSIDouble(0 ))
116- , stress_xz( record.getItem<ParserKeywords::STREQUIL::STRESSXZ >().getSIDouble(0 ))
117- , stress_xz_grad( record.getItem<ParserKeywords::STREQUIL::STRESSXZGRAD >().getSIDouble(0 ))
118- , stress_yz( record.getItem<ParserKeywords::STREQUIL::STRESSYZ >().getSIDouble(0 ))
119- , stress_yz_grad( record.getItem<ParserKeywords::STREQUIL::STRESSYZGRAD >().getSIDouble(0 ))
108+ , stress_{ record.getItem <ParserKeywords::STREQUIL::STRESSXX>().getSIDouble (0 ),
109+ record.getItem <ParserKeywords::STREQUIL::STRESSYY >().getSIDouble (0 ),
110+ record.getItem <ParserKeywords::STREQUIL::STRESSZZ >().getSIDouble (0 ),
111+ record.getItem <ParserKeywords::STREQUIL::STRESSYZ >().getSIDouble (0 ),
112+ record.getItem <ParserKeywords::STREQUIL::STRESSXZ >().getSIDouble (0 ),
113+ record.getItem <ParserKeywords::STREQUIL::STRESSXY >().getSIDouble (0 )}
114+ , stress_grad_{ record.getItem <ParserKeywords::STREQUIL::STRESSXXGRAD >().getSIDouble (0 ),
115+ record.getItem <ParserKeywords::STREQUIL::STRESSYYGRAD >().getSIDouble (0 ),
116+ record.getItem <ParserKeywords::STREQUIL::STRESSZZGRAD >().getSIDouble (0 ),
117+ record.getItem <ParserKeywords::STREQUIL::STRESSYZGRAD >().getSIDouble (0 ),
118+ record.getItem <ParserKeywords::STREQUIL::STRESSXZGRAD >().getSIDouble (0 ),
119+ record.getItem <ParserKeywords::STREQUIL::STRESSXYGRAD >().getSIDouble (0 )}
120120 {}
121121
122122 StressEquilRecord StressEquilRecord::serializationTestObject ()
@@ -125,19 +125,21 @@ namespace Opm {
125125 result.datum_depth = 1.0 ;
126126 result.datum_posx = 2.0 ;
127127 result.datum_posy = 3.0 ;
128- result.stress_xx = 4.0 ;
129- result.stress_xx_grad = 5.0 ;
130- result.stress_yy = 6.0 ;
131- result.stress_yy_grad = 7.0 ;
132- result.stress_zz = 8.0 ;
133- result.stress_zz_grad = 9.0 ;
134-
135- result.stress_xy = 4.0 ;
136- result.stress_xy_grad = 5.0 ;
137- result.stress_xz = 6.0 ;
138- result.stress_xz_grad = 7.0 ;
139- result.stress_yz = 8.0 ;
140- result.stress_yz_grad = 9.0 ;
128+ result.stress_ [VoigtIndex::XX] = 4.0 ;
129+ result.stress_grad_ [VoigtIndex::XX] = 5.0 ;
130+ result.stress_ [VoigtIndex::YY] = 6.0 ;
131+ result.stress_grad_ [VoigtIndex::YY] = 7.0 ;
132+ result.stress_ [VoigtIndex::ZZ] = 8.0 ;
133+ result.stress_grad_ [VoigtIndex::ZZ] = 9.0 ;
134+
135+ result.stress_ [VoigtIndex::XZ] = 10.0 ;
136+ result.stress_grad_ [VoigtIndex::XZ] = 11.0 ;
137+ result.stress_ [VoigtIndex::XY] = 12.0 ;
138+ result.stress_grad_ [VoigtIndex::XY] = 13.0 ;
139+ result.stress_ [VoigtIndex::XZ] = 14.0 ;
140+ result.stress_grad_ [VoigtIndex::XZ] = 15.0 ;
141+ result.stress_ [VoigtIndex::YZ] = 16.0 ;
142+ result.stress_grad_ [VoigtIndex::YZ] = 17.0 ;
141143
142144 return result;
143145 }
@@ -154,75 +156,13 @@ namespace Opm {
154156 return this ->datum_posy ;
155157 }
156158
157- double StressEquilRecord::stressXX () const {
158- return this ->stress_xx ;
159- }
160-
161- double StressEquilRecord::stressXX_grad () const {
162- return this ->stress_xx_grad ;
163- }
164-
165- double StressEquilRecord::stressYY () const {
166- return this ->stress_yy ;
167- }
168-
169- double StressEquilRecord::stressYY_grad () const {
170- return this ->stress_yy_grad ;
171- }
172-
173- double StressEquilRecord::stressZZ () const {
174- return this ->stress_zz ;
175- }
176-
177- double StressEquilRecord::stressZZ_grad () const {
178- return this ->stress_zz_grad ;
179- }
180-
181- double StressEquilRecord::stressXY () const
182- {
183- return this ->stress_xy ;
184- }
185-
186- double StressEquilRecord::stressXY_grad () const
187- {
188- return this ->stress_xy_grad ;
189- }
190-
191- double StressEquilRecord::stressXZ () const
192- {
193- return this ->stress_xz ;
194- }
195-
196- double StressEquilRecord::stressXZ_grad () const
197- {
198- return this ->stress_xz_grad ;
199- }
200-
201- double StressEquilRecord::stressYZ () const
202- {
203- return this ->stress_yz ;
204- }
205-
206- double StressEquilRecord::stressYZ_grad () const
207- {
208- return this ->stress_yz_grad ;
209- }
210-
211159 bool StressEquilRecord::operator ==(const StressEquilRecord& data) const
212160 {
213161 return (datum_depth == data.datum_depth )
214162 && (datum_posx == data.datum_posx )
215163 && (datum_posy == data.datum_posy )
216-
217- // Diagonal terms
218- && (stress_xx == data.stress_xx ) && (stress_xx_grad == data.stress_xx_grad )
219- && (stress_yy == data.stress_yy ) && (stress_yy_grad == data.stress_yy_grad )
220- && (stress_zz == data.stress_zz ) && (stress_zz_grad == data.stress_zz_grad )
221-
222- // Cross terms
223- && (stress_xy == data.stress_xy ) && (stress_xy_grad == data.stress_xy_grad )
224- && (stress_xz == data.stress_xz ) && (stress_xz_grad == data.stress_xz_grad )
225- && (stress_yz == data.stress_yz ) && (stress_yz_grad == data.stress_yz_grad )
164+ && (stress_ == data.stress_ )
165+ && (stress_grad_ == data.stress_grad_ )
226166 ;
227167 }
228168
0 commit comments