Currently, I am attempting to compile the pflotran source files under the Windows environment.
I've noticed there are 226 Fortran source files for pflotran.
The list between Begin Source Block and End Source Block in the makefile has 223 source files.
The three unincluded source files are:
-- pflotran.F90
-- pflotran_rxn.F90
-- timestepper.F90
Moreover, the source block has a file listed as pflotran_provenance, but the only file available in the plflotran source folder is pflotran_no_provenance.
Right now, when I build without the three source files, but with pflotran_provenance, I get the following errors (during the linking process):
Link: executing 'link' libifcoremt.lib(for_main.obj) : error LNK2019: unresolved external symbol _MAIN__ referenced in function _main Debug\pflotran.exe : fatal error LNK1120: 1 unresolved externals
When I add pflotran.F90 back, I get a successful build.
I'm dubious that I get a successful build without pflotran_rxn.F90 and timestepper.F90.
Has anyone seen something like this before?
Many thanks,MattAll the errors below make sense. You need pflotran.F90 because it provides the program declaration (the old “main” in F77). timestepper.F90 is obsolete; don’t use it. pflotran_rxn.F90 is used when we build the reactions as a library. It is only on windows that you need pflotran_no_provenance.F90 as pflotran_provenance.F90 is built automatically through the makefile (and Python), but you are not using the makefile on Windows.
Glenn
Hi Matt,
Good to see you on here.
Please use a python script to generate the list of files every time there are changes to files (added or removed)
You can find the script under pflotran-dev/src/python/ called produce_vfproj_file.py
The instructions are written in comments at the top of the script.
This should get you going every time there is an update.
Let me know if you have questions.
To run python on windows, you can either install python 2.7.6 and ipython OR use Enthought Canopy free full version (comes with its own package manager). I use have both installed, but I use the first option because it gives me much more flexibility managing packages. The first way requires some initial setup, because it’s on Windows. The second way is taken care by Canopy.
Heeho Daniel Park
From: pflotra...@googlegroups.com [mailto:pflotra...@googlegroups.com]
On Behalf Of Matt Thomas
Sent: Tuesday, June 30, 2015 11:46 AM
To: pflotra...@googlegroups.com
Subject: [EXTERNAL] [pflotran-users: 2579] Final steps to compile pflotran in Visual Studio / Fortran
Hello,