Skip to content

Commit

Permalink
Add more trace statements
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel authored and OpenModelica-Hudson committed Feb 20, 2016
1 parent b3692d0 commit 4d534f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Compiler/Template/CodegenC.tpl
Expand Up @@ -2026,6 +2026,7 @@ template functionSetupLinearSystemsTemp(list<SimEqSystem> allEquations, String m

void residualFunc<%ls.index%>(void** dataIn, const double* xloc, double* res, const int* iflag)
{
TRACE_PUSH
DATA *data = (DATA*) ((void**)dataIn[0]);
threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
const int equationIndexes[2] = {1,<%ls.index%>};
Expand All @@ -2036,6 +2037,7 @@ template functionSetupLinearSystemsTemp(list<SimEqSystem> allEquations, String m
<%prebody%>
<%body%>
<% if profileAll() then 'SIM_PROF_ACC_EQ(<%ls.index%>);' %>
TRACE_POP
}
void initializeStaticLSData<%ls.index%>(void *inData, threadData_t *threadData, void *systemData)
{
Expand Down Expand Up @@ -2154,6 +2156,7 @@ template functionSetupLinearSystemsTemp(list<SimEqSystem> allEquations, String m

void residualFunc<%ls.index%>(void** dataIn, const double* xloc, double* res, const int* iflag)
{
TRACE_PUSH
DATA *data = (DATA*) ((void**)dataIn[0]);
threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
const int equationIndexes[2] = {1,<%ls.index%>};
Expand All @@ -2164,6 +2167,7 @@ template functionSetupLinearSystemsTemp(list<SimEqSystem> allEquations, String m
<%prebody%>
<%body%>
<% if profileAll() then 'SIM_PROF_ACC_EQ(<%ls.index%>);' %>
TRACE_POP
}
void initializeStaticLSData<%ls.index%>(void *inData, threadData_t *threadData, void *systemData)
{
Expand All @@ -2178,6 +2182,7 @@ template functionSetupLinearSystemsTemp(list<SimEqSystem> allEquations, String m

void residualFunc<%at.index%>(void** dataIn, const double* xloc, double* res, const int* iflag)
{
TRACE_PUSH
DATA *data = (DATA*) ((void**)dataIn[0]);
threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
const int equationIndexes[2] = {1,<%at.index%>};
Expand All @@ -2188,6 +2193,7 @@ template functionSetupLinearSystemsTemp(list<SimEqSystem> allEquations, String m
<%prebody2%>
<%body2%>
<% if profileAll() then 'SIM_PROF_ACC_EQ(<%at.index%>);' %>
TRACE_POP
}
void initializeStaticLSData<%at.index%>(void *inData, threadData_t *threadData, void *systemData)
{
Expand Down Expand Up @@ -2473,6 +2479,7 @@ template functionNonLinearResiduals(list<SimEqSystem> allEquations, String model

void residualFunc<%nls.index%>(void** dataIn, const double* xloc, double* res, const int* iflag)
{
TRACE_PUSH
DATA *data = (DATA*) ((void**)dataIn[0]);
threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
const int equationIndexes[2] = {1,<%nls.index%>};
Expand All @@ -2487,6 +2494,7 @@ template functionNonLinearResiduals(list<SimEqSystem> allEquations, String model
<%body%>
<%restoreKnownOutputs%>
<% if profileAll() then 'SIM_PROF_ACC_EQ(<%nls.index%>);' %>
TRACE_POP
}
>>
// dynamic tearing
Expand Down Expand Up @@ -2555,6 +2563,7 @@ template functionNonLinearResiduals(list<SimEqSystem> allEquations, String model

void residualFunc<%nls.index%>(void **dataIn, const double* xloc, double* res, const int* iflag)
{
TRACE_PUSH
DATA *data = (DATA*) ((void**)dataIn[0]);
threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
const int equationIndexes[2] = {1,<%nls.index%>};
Expand All @@ -2565,6 +2574,7 @@ template functionNonLinearResiduals(list<SimEqSystem> allEquations, String model
<%prebody%>
<%body%>
<% if profileAll() then 'SIM_PROF_ACC_EQ(<%nls.index%>);' %>
TRACE_POP
}

<%innerEqs2%>
Expand All @@ -2579,6 +2589,7 @@ template functionNonLinearResiduals(list<SimEqSystem> allEquations, String model

void residualFunc<%at.index%>(void **dataIn, const double* xloc, double* res, const int* iflag)
{
TRACE_PUSH
DATA *data = (DATA*) ((void**)dataIn[0]);
threadData_t *threadData = (threadData_t*) ((void**)dataIn[1]);
const int equationIndexes[2] = {1,<%at.index%>};
Expand All @@ -2589,6 +2600,7 @@ template functionNonLinearResiduals(list<SimEqSystem> allEquations, String model
<%prebody2%>
<%body2%>
<% if profileAll() then 'SIM_PROF_ACC_EQ(<%at.index%>);' %>
TRACE_POP
}
>>
)
Expand Down

0 comments on commit 4d534f7

Please sign in to comment.