Error compiling SWAT v681 using Intel Fortran 2021.1.1

229 views
Skip to first unread message

Juan Sebastián Acero Triana

unread,
Jan 27, 2021, 3:03:29 AM1/27/21
to SWAT-user
Hello everyone,

I am trying to compile the source code of SWAT v681 using Intel Fortran 2021.1.1 but I always get errors related to modparm.f:

error #6418: This name has already been assigned a data type.   [WOF_]
error #6418: This name has already been assigned a data type.   [LYRTILE]
error #6417: The dimensions of this array have been defined more than once.   [CH_S]
error #6417: The dimensions of this array have been defined more than once.   [POT_VOLX]
error #6417: The dimensions of this array have been defined more than once.   [CN]
error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PARM]

Does anyone else face the same issues and know how to fix them? I compiled SWAT v664 as a test without a problem so I think there is really something wrong with the last version.

Thank you in advance,

Juan

Nancy B. Sammons

unread,
Jan 27, 2021, 8:28:41 AM1/27/21
to Juan Sebastián Acero Triana, SWAT-user

Juan:  All of these variables listed below are due to a setting in your project.  Extend your fortran language settings to 132 columns as seen below and hopefully that will take care of the problems you are having.  Let me know if it does not.

Nancy

 

 

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/swatuser/5d2732d1-c38e-460a-a680-0398881055fen%40googlegroups.com.

bennour...@gmail.com

unread,
Jun 25, 2021, 5:47:51 AM6/25/21
to SWAT-user
Dear Nancy,
I'm trying to modify the SWAT source code such I can export the soil moisture of the first cm in swr output file to a variable in sub output file and run it. Do you know please after modification the different steps to follow to run the swat model?
kinds regards
Thanks
Ali

santu

unread,
Oct 30, 2021, 11:35:13 AM10/30/21
to SWAT-user
I have compiled the SWAT fortran code successfully on both windows and Linux OSs using gfortran compiler. 
contact me for more information
mail:    s186...@gmail.com

Arshad Ansari

unread,
Nov 10, 2024, 9:46:55 PM11/10/24
to SWAT-user
Hello everyone,

I am trying to compile the source code of SWAT v692 using Intel Fortran  but I am getting these errors even after modifying the language settings. 
pp.png

Nancy B. Sammons

unread,
Nov 11, 2024, 8:55:33 AM11/11/24
to Arshad Ansari, SWAT-user

Arshad:

  • Did you make any changes in this code (e.g. renaming or modifying perhaps the modparm.f file?)
  • Was console application chosen when setting up the project?

I have attached a word document as an example of setting an Intel project for compiling.

Keep me posted on any progress.  

Nancy

 

 

 

From: swat...@googlegroups.com <swat...@googlegroups.com> On Behalf Of Arshad Ansari
Sent: Sunday, November 10, 2024 5:36 PM
To: SWAT-user <swat...@googlegroups.com>
Subject: Re: [SWAT-user:12956] Error compiling SWAT v681 using Intel Fortran 2021.1.1

 

You don't often get email from ansariar...@gmail.com. Learn why this is important

Intel_Fortran_dev_settings.doc
Reply all
Reply to author
Forward
0 new messages