<![CDATA[Multiwfn forum / Update inquire statements]]> - //www.umsyar.com/wfnbbs/viewtopic.php?id=667 Fri, 13 May 2022 15:49:07 +0000 FluxBB <![CDATA[Re: Update inquire statements]]> //www.umsyar.com/wfnbbs/viewtopic.php?pid=2483#p2483 Dear Tian Lu,

Thank you! Your workaround works with gfortran.

Best regards,
Igor

]]>
Fri, 13 May 2022 15:49:07 +0000 //www.umsyar.com/wfnbbs/viewtopic.php?pid=2483#p2483
<![CDATA[Re: Update inquire statements]]> //www.umsyar.com/wfnbbs/viewtopic.php?pid=2481#p2481 Dear Igor,

I just noticed that you have added definition of module "inquire" in the patch. I ignored this point before.

I found the patch introduces dependency on C compiler as well as sys/stat.h, which will make compilation more difficult especially in Windows. To avoid using "inquire(directory=...)" I found another workaround. I just updated Multiwfn on website, you can find I have added a new subroutine "inquire_dir" in util.f90, which is able to determine existence of directory fully within Fortran framework, and it should be compatible with gfortran.

Best regards,

Tian

]]>
Fri, 13 May 2022 14:43:40 +0000 //www.umsyar.com/wfnbbs/viewtopic.php?pid=2481#p2481
<![CDATA[Re: Update inquire statements]]> //www.umsyar.com/wfnbbs/viewtopic.php?pid=2471#p2471 Dear Tian Lu,

I added this module to this patch. After applying the patch, that module should be created (automatically)... That is my question, since I do not see your code after applying the patch, I also do not know how you apply it.

Best regards,
Igor

]]>
Thu, 12 May 2022 02:18:14 +0000 //www.umsyar.com/wfnbbs/viewtopic.php?pid=2471#p2471
<![CDATA[Re: Update inquire statements]]> //www.umsyar.com/wfnbbs/viewtopic.php?pid=2470#p2470 Dear Igor,

In official source code of fileIO.f90 of Multiwfn 3.8(dev), there is no module named "fileIO" defined in fileIO.f90.

Best,

Tian

]]>
Thu, 12 May 2022 01:29:38 +0000 //www.umsyar.com/wfnbbs/viewtopic.php?pid=2470#p2470
<![CDATA[Re: Update inquire statements]]> //www.umsyar.com/wfnbbs/viewtopic.php?pid=2469#p2469 Dear Tian Lu,

That is strange... Do you see fileIO module at the end of fileIO.f90?

Best regards,
Igor

]]>
Wed, 11 May 2022 08:53:11 +0000 //www.umsyar.com/wfnbbs/viewtopic.php?pid=2469#p2469
<![CDATA[Re: Update inquire statements]]> //www.umsyar.com/wfnbbs/viewtopic.php?pid=2468#p2468 Dear Igor,

After adding `use fileIO, only: inquire`, ifort will show: "error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [FILEIO]"

Best,
Tian

]]>
Wed, 11 May 2022 07:58:43 +0000 //www.umsyar.com/wfnbbs/viewtopic.php?pid=2468#p2468
<![CDATA[Re: Update inquire statements]]> //www.umsyar.com/wfnbbs/viewtopic.php?pid=2467#p2467 Dear Tian Lu,

That is interesting since I'm working on top of this patch...

Could you please add `use fileIO, only: inquire` in routines where this problem appears? It will fix this issue.

Best regards,
Igor

]]>
Wed, 11 May 2022 05:56:40 +0000 //www.umsyar.com/wfnbbs/viewtopic.php?pid=2467#p2467
<![CDATA[Re: Update inquire statements]]> //www.umsyar.com/wfnbbs/viewtopic.php?pid=2465#p2465 Dear Igor,

I found lines such as "call inquire(directory="wfntmp",exist=alivewfntmp)" will cause "error #6632: Keyword arguments are invalid without an explicit interface.   [DIRECTORY]" during compilation via ifort.

Best,

Tian

]]>
Wed, 11 May 2022 04:58:34 +0000 //www.umsyar.com/wfnbbs/viewtopic.php?pid=2465#p2465
<![CDATA[Update inquire statements]]> //www.umsyar.com/wfnbbs/viewtopic.php?pid=2463#p2463 Dear Tian Lu,

For increasing the portability of MultiWFN, I updated inquire statements since inquire(directory=) is an extension of Intel Fortran compiler.
Here, is the patch for it: 0001-Inquire-directory-for-gFortran.patch.txt

This patch decreases necessary changes for compiling MultiWFN using gfortran. I did not implement all features of inquire statements; only these which are used in MultiWFN source code.

Best regards,
Igor

]]>
Tue, 10 May 2022 08:42:03 +0000 //www.umsyar.com/wfnbbs/viewtopic.php?pid=2463#p2463