Skip to content

Commit

Permalink
Added new Euler methods to cpp simulation runtime
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9379 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Jun 28, 2011
1 parent f4b9d88 commit 091670f
Show file tree
Hide file tree
Showing 14 changed files with 1,165 additions and 425 deletions.
Expand Up @@ -138,7 +138,7 @@ inline int solveLGS(long int* dim, double* A, double* b)
double* p = new double[(int)*dim]; // Pivot elements

// Solution is written to b
dgesv_/*DGESV*/(dim,&dimRHS,A,dim,p,b,dim,&irtrn);
/*dgesv_*/dgesv_(dim,&dimRHS,A,dim,p,b,dim,&irtrn);

delete [] p;

Expand Down
2 changes: 1 addition & 1 deletion SimulationRuntime/cpp/Source/Math/Interfaces/ILapack.h
Expand Up @@ -13,7 +13,7 @@
* system of equations A * X = B.
********************************/

extern "C" void /*DGESV*/dgesv_(long int *n, long int *nrhs, double *J, long int *ldj, double *pivot,
extern "C" void dgesv_(long int *n, long int *nrhs, double *J, long int *ldj, double *pivot,
double *b, long int *ldb, long int *idid);


Expand Down

0 comments on commit 091670f

Please sign in to comment.