Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile MF-NWT on the mac #1

Closed
juancastilla opened this issue May 20, 2015 · 0 comments
Closed

Compile MF-NWT on the mac #1

juancastilla opened this issue May 20, 2015 · 0 comments

Comments

@juancastilla
Copy link

I successfully compiled mfnwt on the mac using pymake. I only encountered one issue halting the compilation process:

./src_temp/gwf2swr7_NWT.f:14361.22:

    dt = SECNDS(T1)                                               
                          1

Error: 'x' argument of 'secnds' intrinsic at (1) must be of kind 4

I fixed this by changing the following code in gwf2swr7_NWT.f:

DOUBLEPRECISION, INTENT(INOUT) :: T1
DOUBLEPRECISION, INTENT(INOUT) :: T2
DOUBLEPRECISION, INTENT(INOUT) :: Ts

to

REAL(4), INTENT(INOUT) :: T1
REAL(4), INTENT(INOUT) :: T2
REAL(4), INTENT(INOUT) :: Ts

This issue appears to be exclusive of gfortran. Compiling other MODFLOW packages may generate other errors. To debug the .f files and achieve compilation, check warnings and errors appearing on the terminal window—they do not appear in the ipython notebook. This would be a nice addition to pymake.

Thanks Chris!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants