Skip to content

Commit 7413cae

Browse files
committed
Match reads and writes per loop.
1 parent 54ad684 commit 7413cae

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/apps/FEMSWEEP.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -125,22 +125,22 @@ void FEMSWEEP::setSize(Index_type target_size, Index_type target_reps)
125125
1*sizeof(Index_type) * m_sharedinteriorfaces * 4 + // idx1
126126
1*sizeof(Index_type) * m_sharedinteriorfaces * 4 );// idx2
127127
// using total data size instead of writes and reads
128-
setBytesReadPerRep( m_ng*2*sizeof(Real_type) * m_Blen + // Bdat
129-
2*sizeof(Real_type) * m_Alen + // Adat
130-
m_ng*NLF*sizeof(Real_type) * m_Flen + // Fdat
131-
m_na*sizeof(Real_type) * m_Sglen + // Sgdat
132-
m_ng*m_na*sizeof(Real_type) * m_M0len + // M0dat
133-
1*sizeof(Real_type) * m_sharedinteriorfaces * m_na * m_ng * ND * NLF * FDS * FDS + // Xdat
134-
m_ng*sizeof(Index_type) * m_na + // nhpaa_r,
135-
m_ng*sizeof(Index_type) * m_na + // ohpaa_r,
136-
m_ng*sizeof(Index_type) * m_na * m_hplanes + // phpaa_r,
137-
m_ng*sizeof(Index_type) * m_na * m_ne + // order_r,
138-
m_ng*sizeof(Index_type) * NLF * m_ne * m_na + // AngleElem2FaceType
139-
m_ng*m_na*sizeof(Index_type) * NLF * m_ne + // elem_to_faces
140-
m_ng*m_na*sizeof(Index_type) * (m_sharedinteriorfaces + m_boundaryfaces) + // F_g2l
141-
m_ng*m_na*sizeof(Index_type) * m_sharedinteriorfaces * 4 + // idx1
142-
m_ng*m_na*sizeof(Index_type) * m_sharedinteriorfaces * 4 );// idx2
143-
setBytesWrittenPerRep( ND*sizeof(Real_type) * m_Xlen );
128+
setBytesReadPerRep( 1*sizeof(Real_type) * m_Blen + // Bdat
129+
1*sizeof(Real_type) * m_Alen + // Adat
130+
1*sizeof(Real_type) * m_Flen + // Fdat
131+
1*sizeof(Real_type) * m_Sglen + // Sgdat
132+
1*sizeof(Real_type) * m_M0len + // M0dat
133+
(ND-1)*sizeof(Real_type) * m_na * m_ng * m_ne + // Xdat
134+
1*sizeof(Index_type) * m_na + // nhpaa_r,
135+
1*sizeof(Index_type) * m_na + // ohpaa_r,
136+
1*sizeof(Index_type) * m_na * m_hplanes + // phpaa_r,
137+
1*sizeof(Index_type) * m_na * m_ne + // order_r,
138+
1*sizeof(Index_type) * NLF * m_ne * m_na + // AngleElem2FaceType
139+
1*sizeof(Index_type) * NLF * m_ne + // elem_to_faces
140+
1*sizeof(Index_type) * (m_sharedinteriorfaces + m_boundaryfaces) + // F_g2l
141+
1*sizeof(Index_type) * m_sharedinteriorfaces * 4 + // idx1
142+
1*sizeof(Index_type) * m_sharedinteriorfaces * 4 );// idx2
143+
setBytesWrittenPerRep( 1*sizeof(Real_type) * m_Xlen );
144144
setBytesModifyWrittenPerRep( 0 );
145145
setBytesAtomicModifyWrittenPerRep( 0 );
146146

0 commit comments

Comments
 (0)