Open millerta opened 6 years ago
Not finding good build instructions for Windows. GOLDER Neal has a forked version of LaGriT that builds on Windows and includes instructions for their project: See repo at https://github.com/daniellivingston/LaGriT-Windows
From cean wang ceanwang@gmail.com
I have compiled LaGriT under WIndows 10 with gcc/gfortran. I opened a Command Prompt and changed into D:\00master\LaGriT-master\test\level01\addmesh_add, I run this: lagrit<input,lgi
I noticed the error message is a suggestion to add a '' at the end of a function name, that is: initlagrit to initlagrit This is normal for C & Fortran mixed programing. After this change, also need to link to gfortran & quadmesh, now I can compile this eaxmple program successfully.
I copied this page into adrivgen.f with successful compile. https://lanl.github.io/LaGriT/pages/docs/build.html
To compile under WIndows 10 with gcc/gfortran, I only changed src/metis_lg. c because there is a compliant of srand48() and drand48() functions. They are Linux only. I found the solution at https://stackoverflow.com/questions/74274179/i-cant-use-drand48-and-srand48-in-c
Daniel was successful in building a cygwin V3.3 but without external ExodusII libraries.
Need to update scripts and pages in Documentation to update instructions for Windows build.
Need help to create a good install script for WIN version of LaGriT with ExodusII libraries.