Skip to content
Snippets Groups Projects
Commit 5ecd3cdc authored by Robert K's avatar Robert K
Browse files

cleanup.

parent d5b5dc92
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,6 @@ namespace Fem { ...@@ -140,7 +140,6 @@ namespace Fem {
out << std::endl; out << std::endl;
// make length simd conform // make length simd conform
//out << " field_type resultTmp[ " << numRows * dimRange << " ] = { 0 };" << std::endl << std::endl;
out << " field_type resultTmp[ " << numRows * dimRange << " ];" << std::endl; out << " field_type resultTmp[ " << numRows * dimRange << " ];" << std::endl;
out << " for( int i=0; i<" << numRows * dimRange << "; ++i ) resultTmp[ i ] = 0;" << std::endl << std::endl; out << " for( int i=0; i<" << numRows * dimRange << "; ++i ) resultTmp[ i ] = 0;" << std::endl << std::endl;
...@@ -288,7 +287,6 @@ namespace Fem { ...@@ -288,7 +287,6 @@ namespace Fem {
// axpy // axpy
//////////////////////////////////////////////////// ////////////////////////////////////////////////////
//out << " " << doubletype() << " dofResult[ " << numCols * dimRange << " ] = { 0 };" << std::endl << std::endl ;
out << " " << doubletype() << " dofResult[ " << numCols * dimRange << " ];" << std::endl << std::endl ; out << " " << doubletype() << " dofResult[ " << numCols * dimRange << " ];" << std::endl << std::endl ;
out << " for( int i=0; i<" << numCols * dimRange << "; ++i) dofResult[ i ] = 0;" << std::endl; out << " for( int i=0; i<" << numCols * dimRange << "; ++i) dofResult[ i ] = 0;" << std::endl;
const size_t simdRows = simdWidth * (numRows / simdWidth) ; const size_t simdRows = simdWidth * (numRows / simdWidth) ;
...@@ -329,7 +327,6 @@ namespace Fem { ...@@ -329,7 +327,6 @@ namespace Fem {
if( numRows > simdRows ) if( numRows > simdRows )
{ {
out << " typedef typename RangeVectorType :: value_type value_type;" << std::endl; out << " typedef typename RangeVectorType :: value_type value_type;" << std::endl;
//out << " typedef typename ScalarRangeType :: field_type field_type;" << std::endl;
out << std::endl; out << std::endl;
out << " // remainder iteration" << std::endl; out << " // remainder iteration" << std::endl;
...@@ -479,13 +476,6 @@ namespace Fem { ...@@ -479,13 +476,6 @@ namespace Fem {
out << " }" << std::endl; out << " }" << std::endl;
out << std::endl; out << std::endl;
/*
for( int d = 0; d < dim ; ++ d )
{
// make length simd conform
out << " field_type resultTmp" << d << "[ " << numRows * dimRange << " ] = { 0 }; " << std::endl;
}
*/
for( int d = 0; d < dim ; ++ d ) for( int d = 0; d < dim ; ++ d )
{ {
// make length simd conform // make length simd conform
...@@ -684,9 +674,6 @@ namespace Fem { ...@@ -684,9 +674,6 @@ namespace Fem {
out << " typedef typename JacobianRangeVectorType :: value_type value_type;" << std::endl; out << " typedef typename JacobianRangeVectorType :: value_type value_type;" << std::endl;
out << " typedef typename JacobianRangeType :: field_type field_type;" << std::endl; out << " typedef typename JacobianRangeType :: field_type field_type;" << std::endl;
const size_t dofs = dimRange * numCols ; const size_t dofs = dimRange * numCols ;
//out << " field_type result [ " << dofs << " ] = {";
//for( size_t dof = 0 ; dof < dofs-1 ; ++ dof ) out << " 0,";
//out << " 0 };" << std::endl << std::endl;
out << " field_type result [ " << dofs << " ];" << std::endl; out << " field_type result [ " << dofs << " ];" << std::endl;
out << " for ( int i=0; i<" << dofs << "; ++i ) result[ i ] = 0;" << std::endl; out << " for ( int i=0; i<" << dofs << "; ++i ) result[ i ] = 0;" << std::endl;
for( int r=0; r<dimRange; ++r ) for( int r=0; r<dimRange; ++r )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment