Basic questions about compiling SWAT from source code

689 views
Skip to first unread message

hzambran

unread,
Jan 22, 2009, 5:08:49 AM1/22/09
to SWAT-user
Dear all,

I would like to try SWAT during my PhD research, and after looking its
web page I have some questions in which I'll really appreciate any
help from more experienced users:

1) The source code of swat (both 2000 and 2005) is written in F90,
right ?

2) Why the source code of SWAT 2000 has different versions for PC and
Unix whereas the 2005 has only one ?

3) If I try to directly compile (with gfortran) the source of SWAT
2005 in a Linux machine (Ubuntu 8.10), should I need to do some
modifications to the source code because this Unix environment is not
Solaris ?. I don't have experience in fortran (but in other
programming languages), and I'm just started learning it...


Thanks in advance,

Mauricio

Mauricio Zambrano

unread,
Jan 22, 2009, 10:25:41 AM1/22/09
to lin ye, swat...@googlegroups.com
Thanks for your quick answer Lin.

2009/1/22 lin ye <lin...@gmail.com>:


>
>
> On Thu, Jan 22, 2009 at 6:08 PM, hzambran <hzambran....@gmail.com>
> wrote:
>>
>> Dear all,
>>
>> I would like to try SWAT during my PhD research, and after looking its
>> web page I have some questions in which I'll really appreciate any
>> help from more experienced users:
>>
>> 1) The source code of swat (both 2000 and 2005) is written in F90,
>> right ?
>

> ~~~~~~~~I feel most codes are F90.


>
>>
>> 2) Why the source code of SWAT 2000 has different versions for PC and
>> Unix whereas the 2005 has only one ?
>
>
>>
>> 3) If I try to directly compile (with gfortran) the source of SWAT
>> 2005 in a Linux machine (Ubuntu 8.10), should I need to do some
>> modifications to the source code because this Unix environment is not
>> Solaris ?. I don't have experience in fortran (but in other
>> programming languages), and I'm just started learning it...
>>

> ~~~~The SWAT2005 source codes can be complied successfully with Intel
> fortran complier (Linux)

Unfortunately, I don't have the Intel fortran compiler for Linux, and
reading the "Non-Commercial Software Development" agreement of Intel:

"Note that academic use of the products does not qualify for a
non-commercial license. Intel offers heavily discounted licenses to
academic developers through our Academic Developer Program"

I realized that I can not apply for a non-commercial license. So, I
would like to try to compile the source code of SWAT 2005 in Linux
using 'gfortran'. Has anybody tried to compile SWAT 2005 with
'gfortran' ?

By the way, I managed to successfully compile the source code of
SWAT2005 using the Compaq Visual Fortran 6.5, but I had to comment the
first line of the file 'main.f':

!! include 'modparm.f'

Can anybody tell me why ?

Thanks in advance

--
Mauricio

Linux user #454569 -- Ubuntu user #17469

Behnam Ababaei

unread,
Jan 23, 2009, 12:44:15 PM1/23/09
to hzambran, SWAT-user
I have a problem with source code compilation. I receive an error in relation to the module modparam and parm.f . Do I have to re-download the source code from website? Is there any changes in the source code available in the website since 2 years ago? Are new development added to these codes routinely?

Thanks
Behnam

Tao

unread,
Sep 28, 2014, 3:28:18 PM9/28/14
to swat...@googlegroups.com
Dear all,

I am a beginner of Linux.
Is there any document for how to use the SWAT executable?
Thanks!

Tao

Grey Evenson

unread,
Sep 29, 2014, 7:26:48 AM9/29/14
to Tao, swat...@googlegroups.com
Hi Tao,

To my knowledge, there is no linux-specific user document.  However, it really isn't all that much different then how you'd use in windows.  If your linux distribution has a file browser interface then you can simply navigate to its location and double-click on the swat file.  If you have more specific questions then let us know!


--
You received this message because you are subscribed to the Google Groups "SWAT-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swatuser+u...@googlegroups.com.
To post to this group, send email to swat...@googlegroups.com.
Visit this group at http://groups.google.com/group/swatuser.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages