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 seawat4 on Ubuntu 14.04 #2

Closed
arjenoord opened this issue Aug 28, 2015 · 3 comments
Closed

Compile seawat4 on Ubuntu 14.04 #2

arjenoord opened this issue Aug 28, 2015 · 3 comments

Comments

@arjenoord
Copy link

Hello,

I am trying to use pymake to compile seawat v4 (Ubuntu 14.04.2). Unfortunately I have run into some errors. One I have not been able to resolve yet:

gfortran -O2 -c ./src_temp/parallel/para-mpi.f -o ./obj_temp/para-mpi.o -Iobj_temp -Jmod_temp
./src_temp/parallel/para-mpi.f:15: Error: Can't open included file 'mpif.h'
Traceback (most recent call last):
File "", line 1, in
File "pymake.py", line 342, in main
expedite, dryrun)
File "pymake.py", line 232, in compile_with_gnu
subprocess.check_call(cmdlist)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gfortran', '-O2', '-c', './src_temp/parallel/para-mpi.f', '-o', './obj_temp/para-mpi.o', '-Iobj_temp', '-Jmod_temp']' returned non-zero exit status 1

Any ideas?

Much appreciated.

Regards,
Arjen

@langevin-usgs
Copy link
Collaborator

Hi Arjen, I had to rework pymake a bit to have it compile SEAWAT automatically. Take a look at the make_swtv4.py example. It works for me, and compiles SEAWAT. The issue that you were having was because of the 'parallel' and 'serial' folders included with source. The make_swtv4.py script removes these automatically. Should all work now. Good luck!

@arjenoord
Copy link
Author

Hi
Got it! I still had to rename a few files that have file names in capitals (e.g. SOLVERS.c), but after that, no problem! The automatic download is quite convenient.
Thanks.
Arjen

@langevin-usgs
Copy link
Collaborator

Strange that there are still problems with the capital letter file names. I thought I fixed that in pymake by converting to lower when building the DAG. I don't have a problem on my Mac. Let me know if come across a fix for that.

Sent from my iPad

On Aug 29, 2015, at 8:39 AM, arjenoord notifications@github.com wrote:

Hi
Got it! I still had to rename a few files that have file names in capitals (e.g. SOLVERS.c), but after that, no problem! The automatic download is quite convenient.
Thanks.
Arjen


Reply to this email directly or view it on GitHub.

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