As the source code for MODFLOW-LGR is not readily available, it has been bundled together with the PCGN release and is available here:
Version 1.1.1 of the MODFLOW-LGR source code is made available throught this release. Download the tar file containing the bundled source code files and place it in a directory of your choosing; uncompress the tar file. After uncompressing the tar file, the top-most directory immediately available will be v1.1.1. Three additional subdirectories are below this top-most directory: doc, src and test. Directory src contains the source files for the MODFLOW-LGR ground-water model with the PCGN solver, directory test contains an appropriate test problem and directory doc contains the PCGN documentation.
Having downloaded and uncompressed the tar file for MODFLOW-LGR/PCGN, the software is installed with the included makefile. The makefile is preset to use the gfortran compiler and Gnu C compiler; if the user wishes other compiler alternatives, the makefile must be modified. Before making the makefile, the user should determine the nature of the format specification for binary files (in the event that binary files are needed). Generally speaking, for gfortran, one should use the "unformatted" option as gfortran does not recognize the "binary" option. In MODFLOW, this option is set in the openspec.inc file; in the MODFLOW-LGR/PCGN release, the FORM specifier contained in the openspec.inc file is preset to the "unformatted" option. On the other hand, most commercial compilers allow that "binary" be used as an alternate to the "unformatted" specification; if the user is using a commercial compiler and has appropriately altered the makefile, then a "binary" format specification is feasible. A openspec_binary.inc file, in which the "binary" option has been selected, has been included with the MODFLOW-LGR/PCGN release; replacing openspec.inc with openspec_binary.inc before compiling the source code with the makefile will cause the "binary" option to be in effect. Please note: "unformatted" binary files are not compatible with "binary" binary files. When the user is satisfied that compiler and binary format options are properly set, then the MODFLOW/PCGN release should be installed using the makefile.
After the installation process has finished, MODFLOW with PCGN can be tested using the example data set located in the v.1.1.1/test directory. To generate a listing file for the for this example, simply run the MODFLOW-LGR executable, MFLGR.ex; when MODFLOW-LGR asks for the name of a NAME FILE or LGR CONTROL FILE, insert ../test/dualrefine.lgr on the command line and press the return key. Compare the listing files generated, ../test/parent.lst, ../test/child.lst and ../test/child2.lst, with the test listing files, ../test/parentpcgn.lst, ../test/childpcgn.lst and ../test/child2pcgn.lst, to ascertain that the solver is working correctly. If these listing files are substantially equivalent, then the instillation of MODFLOW-LGR is complete. If so desired, the object files (*.o) can also be removed from the source directory.
URL:
http://wwwbrr.cr.usgs.gov/projects/GW_stoch/pcgn/pages/mflgr_LU_install.shtml
Contact:rlnaff@usgs.gov