Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22226 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Sep 9, 2014
1 parent 851e633 commit 302a607
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -7008,7 +7008,7 @@ end testdimension;
template dimensionExp(DAE.Exp dimExp,Context context,Boolean useFlatArrayNotation)
::=
match dimExp
case DAE.CREF(componentRef = cr) then
case DAE.CREF(componentRef = cr) then
match context
case FUNCTION_CONTEXT(__) then System.unquoteIdentifier(crefStr(cr))
else '<%cref(cr, useFlatArrayNotation)%>'
Expand Down Expand Up @@ -9987,7 +9987,7 @@ template cref1(ComponentRef cr, SimCode simCode, Context context, Text &varDecls
'unsigned_'
case CREF_IDENT(ident = "string") then
'string_'

else '<%representationCref(cr, simCode,context, varDecls, useFlatArrayNotation) %>'
end cref1;

Expand Down
8 changes: 4 additions & 4 deletions SimulationRuntime/cpp/Include/Core/Math/Array.h
Expand Up @@ -273,7 +273,7 @@ template<typename T ,std::size_t size1,std::size_t size2,bool fotran = false>cla
const T* data = rhs.getData();
// std::copy(data,data+size2,data0+(size1));
memcpy( _real_array.begin()+(i-1)*size2, data, size2 * sizeof( T ) );

}
virtual void assign(const BaseArray<T>& otherArray)
{
Expand All @@ -283,7 +283,7 @@ template<typename T ,std::size_t size1,std::size_t size2,bool fotran = false>cla
const T* data_otherarray = otherArray.getData();
//std::copy(data_otherarray,data_otherarray+size1*size2,_real_array.begin());
memcpy( _real_array.begin(), data_otherarray, size1*size2 * sizeof( T ) );

}

virtual void assign(const T* data)//)const T (&data) [size1*size2]
Expand Down Expand Up @@ -389,15 +389,15 @@ template<typename T ,std::size_t size1, std::size_t size2, std::size_t size3> cl
const T* data_otherarray = otherArray.getData();
//std::copy(data_otherarray,data_otherarray+size1*size2*size3,_real_array.begin());
memcpy( _real_array.begin(), data_otherarray, size1*size2*size3 * sizeof( T ) );

}
void append(size_t i,const StatArrayDim2<T,size2,size3>& rhs)
{

const T* data = rhs.getData();
// std::copy(data,data+size2,data0+(size1));
memcpy( _real_array.begin()+(i-1)*size2*size3, data, size2 *size3*sizeof( T ) );


}
virtual void assign(const T* data)
Expand Down

0 comments on commit 302a607

Please sign in to comment.