Skip to content

Commit

Permalink
Removed need for fortran compiler by translating fortran files to c u…
Browse files Browse the repository at this point in the history
…sing f2c. Replaced nelmead.f with version that can be translated. Moved fortran files to folder named fortran. Several testcases updated due to small numerical differences between c and fortran.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2778 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Apr 19, 2007
1 parent 51608e2 commit 95d5aba
Show file tree
Hide file tree
Showing 49 changed files with 18,506 additions and 764 deletions.
4 changes: 2 additions & 2 deletions Compiler/SimCodegen.mo
Expand Up @@ -150,7 +150,7 @@ public function generateMakefile "function: generateMakefile
str = Util.stringAppendList(
{"#Makefile generated by OpenModelica\n\n","CXX=g++\n",
cname,": ",cpp_file,"\n","\t $(CXX) -o ",cname,".exe ",cpp_file," -L\"",
omhome,"/lib/\""," -I. -I\"",omhome,"/include/\" "," -lsim -lg2c -lc_runtime ",
omhome,"/lib/\""," -I. -I\"",omhome,"/include/\" "," -lsim -lc_runtime -lf2c ",
libs_1,"\n"}) "\".exe\" is needed for a class that is in a package." ;
System.writeFile(filename, str);
then
Expand All @@ -165,7 +165,7 @@ public function generateMakefile "function: generateMakefile
{"#Makefile generated by OpenModelica\n\n","CXX=g++\n",
cname,": ",cpp_file,"\n","\t $(CXX) -o ",cname,".exe ",cpp_file," -L\"",
omhome,"/lib/\""," -L\"",file_dir,"\""," -I. -I\"",omhome,"/include/\" ",
" -I\"",file_dir,"\""," -lsim -lg2c -lc_runtime ",libs_1,"\n"}) "\".exe\" is needed for a class that is in a package." ;
" -I\"",file_dir,"\""," -lsim -lc_runtime -lf2c ",libs_1,"\n"}) "\".exe\" is needed for a class that is in a package." ;
System.writeFile(filename, str);
then
();
Expand Down

0 comments on commit 95d5aba

Please sign in to comment.