Compatibility Issues with User-Compiled SWAT-MODFLOW Engine in QSWATMOD2 Interface

173 views
Skip to first unread message

seoro...@gmail.com

unread,
Sep 8, 2023, 4:04:12 AM9/8/23
to SWAT-MODFLOW

Dear all,

I have a question related to a runtime error with the engine in QSWATMOD2. 

When executing the SWAT-MODFLOW engine from the QSWATMOD2 interface, the most recently updated compiled engine (swatmf_rel230818.exe) provided by the SWAT-MODFLOW website or GitHub runs without issues. 

However, the SWAT-MODFLOW engine that I compiled myself from source code does not run in QSWATMOD. 

I have made sure to name the engine as required by QSWATMOD2.py. 

However, when I run the engine directly within the SWAT-MODFLOW folder, it simulates without any problems.

 Do I need an engine compiled specifically for the QSWATMOD2 interface environment?

 

Thank you very much. Waiting eagerly for the reply.

With best regards

Seoro Lee

Seonggyu Park

unread,
Oct 11, 2023, 9:19:14 AM10/11/23
to SWAT-MODFLOW
Dear Seoro Lee,

Could you please post the error message?

Thanks,
Seonggyu

seoro...@gmail.com

unread,
Oct 31, 2023, 5:13:48 AM10/31/23
to SWAT-MODFLOW
Dear Seonggyu Park,

I apologize for the delayed response due to some overlapping personal work. 
When I executed the engine I compiled in QSWATMOD, there was no reaction and no specific error messages were displayed.

I think that the issue might be stemming from my compilation methods. 
I have been using Intel Fortran for compiling, but I'm also exploring the use of Gfortran.

May I Kindly ask which tool you utilized for compiling the SWAT-MODFLOW code?
Additionally, do you have any reference materials or documentation on how to compile the SWAT-MODFLOW codes?

Thank,
Seoro

2023년 10월 11일 수요일 오후 10시 19분 14초 UTC+9에 env...@gmail.com님이 작성:
Message has been deleted

seoro...@gmail.com

unread,
Nov 2, 2023, 9:17:21 AM11/2/23
to SWAT-MODFLOW

Dear Seonggyu Park,

I've tried several approaches and identified the source of the error message. 

When the recompiled engine from the original SWAT-MODFLOW3 model's source codes exists within the SWAT-MODFLOW folder, clicking 'run' on the QSWATMOD2 interface triggers a subprocess error. 

Is there a relationship between the newly compiled engine and subprocess.py? Additionally, I would like to inquire if there is a solution related to this issue.

Thank,

Seorosubprocess_error.png

------------------------------------------

2023-11-02T22:13:39     WARNING    warning:C:\PROGRA~1\QGIS32~1.1\apps\Python39\lib\subprocess.py:1052: ResourceWarning: subprocess 51180 is still running
              _warn("subprocess %s is still running" % self.pid,
             traceback: File "C:\Users/seoro/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATMOD2\QSWATMOD2.py", line 412, in run
              result = self.dlg.exec_()
              File "C:\PROGRA~1\QGIS32~1.1\apps\Python39\lib\subprocess.py", line 1052, in __del__
              _warn("subprocess %s is still running" % self.pid,


2023년 10월 31일 화요일 오후 6시 13분 48초 UTC+9에 seoro...@gmail.com님이 작성:

Seonggyu Park

unread,
Nov 7, 2023, 10:38:41 PM11/7/23
to SWAT-MODFLOW
Hi Seoro,

Have you tried to run your compiled executable in the window command prompt?
If it runs in the prompt without issue, please share your QSWATMOD project and qgis file.

Best,
Seonggyu

Seoro Lee

unread,
Nov 9, 2023, 12:02:27 AM11/9/23
to Seonggyu Park, SWAT-MODFLOW

Hi Seonggyu,

 

I can confirm that the compiled executable (new_compiled_SWAT-MODFLOW3.exe) runs without any issues in the Windows command prompt. 

However, I am encountering problems when trying to execute it within the QSWATMOD interface.

 

Please find the QSWATMOD project files for your reference. I truly appreciate your willingness to assist with this matter amidst your busy schedule. 

Whenever you have a moment to spare, I would greatly appreciate it if you could review the attached project.

 

Best regards,


Seoro

 

=====================================
Seoro Lee, Ph.D
GIS environmental system laboratory
Kangwon National University, Korea (ROK)
=====================================



2023년 11월 8일 (수) 오후 12:38, Seonggyu Park <env...@gmail.com>님이 작성:
--
You received this message because you are subscribed to a topic in the Google Groups "SWAT-MODFLOW" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swat-modflow/tJKS3JmyuxQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swat-modflow...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swat-modflow/7ea0cc1b-7440-434e-8ca4-3c2a01e5d0d3n%40googlegroups.com.

Seonggyu Park

unread,
Nov 22, 2023, 12:37:29 AM11/22/23
to SWAT-MODFLOW
Hello Seoro,

After reviewing your project, I observed that there is still a model crash in the command prompt with your compiled version, specifically complaining an issue with your plant.dat file. I successfully ran the model using the latest executable version. Please check the source of the model here (https://github.com/spark-brc/SWAT-MODFLOW3) and compare it with yours.

Best,
Seonggyu


Reply all
Reply to author
Forward
0 new messages