Skip to content

Commit

Permalink
[Janitor mode] Fix tabs
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19684 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Mar 21, 2014
1 parent 835a635 commit fdc58e2
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -121,7 +121,7 @@ case SIMCODE(modelInfo=MODELINFO(__)) then
class <%lastIdentOfPath(modelInfo.name)%>Jacobian: virtual public <%lastIdentOfPath(modelInfo.name)%>
{
<% (jacobianMatrixes |> (mat, _,_, _, _, _) hasindex index0 =>
(mat |> (eqs,_,_) => generatefriendAlgloops(eqs,simCode) ;separator="\n")
;separator="")
Expand Down Expand Up @@ -878,57 +878,57 @@ case SIMCODE(modelInfo=MODELINFO(__)) then


void <%classname%>StateSelection::getAMatrix(unsigned int index,multi_array<int,2> & A)
{
<%match getAMatrix2 case "" then '' else
<<
switch (index)
{
<%match getAMatrix2 case "" then '' else
<<
switch (index)
{
<%getAMatrix2%>
default:
throw std::invalid_argument("Not supported statset index");
}
>>
%>
default:
throw std::invalid_argument("Not supported statset index");
}
>>
%>
}
void <%classname%>StateSelection::getAMatrix(unsigned int index,multi_array<int,1> & A)
{
<%match getAMatrix1 case "" then '' else
<<
switch (index)
{
{
<%match getAMatrix1 case "" then '' else
<<
switch (index)
{
<%getAMatrix1%>
default:
throw std::invalid_argument("Not supported statset index");
}
>>
%>
throw std::invalid_argument("Not supported statset index");
}
>>
%>
}

void <%classname%>StateSelection::setAMatrix(unsigned int index,multi_array<int,2> & A)
{
<%match setAMatrix2 case "" then '' else
<<
switch (index)
{
<%match setAMatrix2 case "" then '' else
<<
switch (index)
{
<%setAMatrix2%>
default:
throw std::invalid_argument("Not supported statset index");
}
>>
%>
default:
throw std::invalid_argument("Not supported statset index");
}
>>
%>
}
void <%classname%>StateSelection::setAMatrix(unsigned int index,multi_array<int,1> & A)
{
<%match setAMatrix1 case "" then '' else
<<
switch (index)
{
{
<%match setAMatrix1 case "" then '' else
<<
switch (index)
{
<%setAMatrix1%>
default:
throw std::invalid_argument("Not supported statset index");
}
>>
%>
throw std::invalid_argument("Not supported statset index");
}
>>
%>
}


Expand Down

0 comments on commit fdc58e2

Please sign in to comment.