Compiling SWAT for Linux HPC

215 views
Skip to first unread message

Chang Liao

unread,
Jan 12, 2018, 6:04:30 PM1/12/18
to SWAT-user
Hi,

I have read quite a few posts about SWAT under Linux and I think you can try my method if any of you still have issue.

I recently tried to compile SWAT from source code using makefile and CMake, it worked after fixing some errors.

The step-by-step instruction is hosted on Github now.

You can use the modified source code from the repository or you can edit the source code (version 664 at the time of testing) following my comments on Github.

After the CMake build, you will have the following tree structure:




If you prefer to use ifort other than gfortran, leave a comment, I may add that later.

Good luck!

--Chang

Zhiqiang Yu

unread,
Jan 13, 2018, 11:35:32 AM1/13/18
to SWAT-user
Good job! I see the performance gain to run a model with HPC. I'm wondering how you analyze the outputs after the run in Linux. Thanks. 

Chang Liao

unread,
Jan 15, 2018, 4:50:56 PM1/15/18
to SWAT-user
Thanks!
I have previously developed a few systems to preprocess and postprocess similar models (PRMS, MODFLOW) I/O using IDL under HPC.
So I am planning to migrate them to SWAT, but I am planning to translate functions into Python so everyone can use them.
Reply all
Reply to author
Forward
0 new messages