Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
spell fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed May 12, 2017
1 parent 9dc481e commit f6f6a14
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAEOptimize.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ algorithm
func = DAEUtil.getNamedFunction(path,BackendDAEUtil.getFunctions(shared));
elemLst = DAEUtil.getFunctionElements(func);
//print(ExpressionDump.dumpExpStr(e,0)+"\n");
//print("THE FUCNTION CALL\n "+DAEDump.dumpElementsStr(elemLst)+"\n");
//print("THE FUNCTION CALL\n "+DAEDump.dumpElementsStr(elemLst)+"\n");
(i1,i2,i3,i4,i5,i6,i7,i8) = countOperationsInFunction(elemLst,shared,inTuple);
then (e, (i1,i2,i3,i4,i5,i6,i7,i8+1));
else
Expand Down
4 changes: 2 additions & 2 deletions Compiler/BackEnd/EvaluateFunctions.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ algorithm
end matchcontinue;
end buildVariableFunctionParts;

protected function buildConstFunctionCrefs "builds the new crefs (for example the scalars from a record) for the constant functino outputs"
protected function buildConstFunctionCrefs "builds the new crefs (for example the scalars from a record) for the constant function outputs"
input list<DAE.ComponentRef> constScalarCrefs;
input list<DAE.ComponentRef> constComplCrefs;
input list<DAE.ComponentRef> allOutputCrefs;
Expand Down Expand Up @@ -3274,7 +3274,7 @@ algorithm
posOut := if b1 and b2 then posLst else posIn;
end compareConstantExps2;

protected function makeAssignmentMap "mapping functino fo build the statements for a list of lhs and rhs exps.
protected function makeAssignmentMap "mapping function fo build the statements for a list of lhs and rhs exps.
author:Waurich TUD 2014-04"
input Integer idx;
input list<DAE.Exp> lhs;
Expand Down
5 changes: 2 additions & 3 deletions Compiler/FrontEnd/Expression.mo
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ algorithm
exp := match(dim)
local
Integer i;
DAE.Exp e;

case DAE.DIM_INTEGER(integer = i) then DAE.ICONST(i);
case DAE.DIM_ENUM(size = i) then DAE.ICONST(i);
Expand Down Expand Up @@ -782,7 +781,7 @@ algorithm
end stripNoEventExp;

public function addNoEventToRelations
"Function that adds a noEvent() call to all relations in an expression"
"Function that adds a noEvent() call to all relations in an expression"
input DAE.Exp e;
output DAE.Exp outE;
algorithm
Expand Down Expand Up @@ -11114,7 +11113,7 @@ end arrayContent;

public function fromAbsynExp
"@author: adrpo
transform Absyn.Exp into DAE.Exp, uknown types are used"
transform Absyn.Exp into DAE.Exp, unknown types are used"
input Absyn.Exp inAExp;
output DAE.Exp outDExp;
algorithm
Expand Down
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/Types.mo
Original file line number Diff line number Diff line change
Expand Up @@ -4842,7 +4842,7 @@ algorithm
end matchcontinue;
end typeConvert;

protected function liftExpType "help funciton to typeConvert. Changes the DAE.Type stored
protected function liftExpType "help function to typeConvert. Changes the DAE.Type stored
in expression (which is typically a CAST) by adding a dimension to it, making it into an array
type."
input DAE.Exp ie;
Expand Down
2 changes: 1 addition & 1 deletion Compiler/NFFrontEnd/NFFunc.mo
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ encapsulated package NFFunc
//// adrpo:
//// - see Static.mo for how to check the input arguments or any other checks we need that should be ported
//// - try to use Expression.makePureBuiltinCall everywhere instead of creating the typedExp via DAE.CALL
//// - all the fuctions that are defined *with no input/output type* in ModelicaBuiltin.mo such as:
//// - all the functions that are defined *with no input/output type* in ModelicaBuiltin.mo such as:
//// function NAME "Transpose a matrix"
//// external "builtin";
//// end NAME;
Expand Down
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCode.mo
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ encapsulated package SimCode


The entry points to this module are the translateModel function and the
translateFunctions fuction.
translateFunctions function.

Except for the entry points, the only other public functions are those that
can be imported and called from templates.
Expand Down
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCodeFunction.mo
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/

encapsulated package SimCodeFunction
"The entry points to this module is the translateFunctions fuction."
"The entry points to this module is the translateFunctions function."

// public imports
public
Expand Down
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCodeMain.mo
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ encapsulated package SimCodeMain
description: Code generation using Susan templates

The entry points to this module are the translateModel function and the
translateFunctions fuction."
translateFunctions function."


// public imports
Expand Down
6 changes: 3 additions & 3 deletions Compiler/SimCode/SimCodeUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -4221,7 +4221,7 @@ end indexStateSets;
//
// =============================================================================

protected function createSymbolicSimulationJacobian "fuction createSymbolicSimulationJacobian
protected function createSymbolicSimulationJacobian "function createSymbolicSimulationJacobian
author: wbraun
function creates a symbolic jacobian column for
non-linear systems and tearing systems."
Expand Down Expand Up @@ -4435,7 +4435,7 @@ algorithm
end checkForEmptyBDAE;

protected function createSymbolicJacobianssSimCode
"fuction creates the linear model matrices column-wise
"function creates the linear model matrices column-wise
author: wbraun"
input BackendDAE.SymbolicJacobians inSymJacobians;
input SimCode.HashTableCrefToSimVar inSimVarHT;
Expand Down Expand Up @@ -5019,7 +5019,7 @@ algorithm
end dumpSparsePattern;

protected function createSimCodeSparsePattenDAEmode
"fuction translates the sparse pattern of the daeMode
"function translates the sparse pattern of the daeMode
author: wbraun"
input BackendDAE.SymbolicJacobians inSymJacobian;
input SimCode.HashTableCrefToSimVar inSimVarHT;
Expand Down
4 changes: 2 additions & 2 deletions Compiler/Template/CodegenCFunctions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3541,8 +3541,8 @@ template expTypeShort(DAE.Type type)
case T_FUNCTION_REFERENCE_FUNC(__)
case T_FUNCTION_REFERENCE_VAR(__) then "fnptr"
case T_UNKNOWN(__) then if acceptMetaModelicaGrammar() /* TODO: Don't do this to me! */
then "complex /* assumming void* for unknown type! when +g=MetaModelica */ "
else "real /* assumming real for uknown type! */"
then "complex /* assuming void* for unknown type! when +g=MetaModelica */ "
else "real /* assuming real for unknown type! */"
case T_ANYTYPE(__) then "complex" /* TODO: Don't do this to me! */
else error(sourceInfo(),'expTypeShort: <%unparseType(type)%>')
end expTypeShort;
Expand Down
2 changes: 1 addition & 1 deletion Compiler/Util/Util.mo
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ end stringContainsChar;

public function stringDelimitListPrintBuf "
Author: BZ, 2009-11
Same funcitonality as stringDelimitListPrint, but writes to print buffer instead of string variable.
Same functionality as stringDelimitListPrint, but writes to print buffer instead of string variable.
Usefull for heavy string operations(causes malloc error on some models when generating init file).
"
input list<String> inStringLst;
Expand Down

0 comments on commit f6f6a14

Please sign in to comment.