MODFLOW-USGS / mt3d-usgs

MT3D-USGS Repository
23 stars 12 forks source link

External references preventing gfortran compiling code #38

Closed emorway-usgs closed 5 years ago

emorway-usgs commented 5 years ago

With commit 377efcf, an external reference to a library called IFLPORT made its way into the code. This prevents gfortran from compiling since it doesn't have access to this dependency. Commit 377efcf offered code originally written by a 3rd party for detecting whether the FTL file is written in double precision (instead of the standard single precision). This is good functionality to keep, just needs to be tweaked to avoid the use of a dependency.

emorway-usgs commented 5 years ago

Removed external library dependency but still auto-detect for the use single vs double precision in the FTL file. The new FMI was checked using two variations of the same model but with 2 versions of the FTL file (one was generated using the standard version of MF-NWT, the other was generated using a version of MF-NWT compiled to write output using double precision). Budgets were the same in both of the MT3D-USGS list files. Also, the new FMI file compiles with gfortran (t000_test.py in the autotest directory).