Multiwfn forum

Multiwfn official website: http://sobereva.com/multiwfn. Multiwfn forum in Chinese: http://bbs.keinsci.com/wfn. E-mail of admin: sobereva[at]sina.com

You are not logged in.

#1 2022-05-16 05:27:15

i.s.ger
Member
Registered: 2020-12-01
Posts: 55

Build GUI version under Windows

Dear Tian Lu,

How can I build Windows GUI version? Should I just link MultiWFN with https://www.dislin.de/downloads/win64/dl_11_ic.zip?

Best regards,
Igor

Offline

#2 2022-05-16 09:58:25

sobereva
Tian Lu (Multiwfn developer)
From: Beijing
Registered: 2017-09-11
Posts: 1,621
Website

Re: Build GUI version under Windows

Dear Igor,

Please check Multiwfn_3.7_src_Win64.rar in download page of Multiwfn official site.
The way of compilation of Windows version is unchanged compared to version 3.7, only the source codes are updated.

Best regards,

Tian

Offline

#3 2022-05-16 10:01:07

i.s.ger
Member
Registered: 2020-12-01
Posts: 55

Re: Build GUI version under Windows

Dear Tian Lu,

Thank you so much! I will have a look.

Best regards,
Igor

Offline

#4 2022-05-16 10:09:50

sobereva
Tian Lu (Multiwfn developer)
From: Beijing
Registered: 2017-09-11
Posts: 1,621
Website

Re: Build GUI version under Windows

Dear Igor,

Probably I have already updated the compilation document before due to the new implementation of libreta introduced some months ago (I don't remember clearly), the least document has the following content now:

===== Compile Multiwfn by Intel Visual Fortran in Windows 64bit system ======

In Windows platform, Multiwfn can only be compiled by Intel Visual Fortran. Below I describe how to compile Multiwfn using Intel Visual Fortran (version 2021.2.0) under Microsoft Visual Studio 2019, this is also the environment I am using for developing current Multiwfn version.

1 Boot up Visual Studio, create a new Intel Visual Fortran project named "Multiwfn" (Console Application - Empty Project), copy all content from Multiwfn source code package to the project folder, and then add all following files into "Source Files" of the current project:
all .F and .f90 files (including those in "libreta_hybrid" folder)
disifl_d.lib

2 "Build" - "Configuration Manager", switch to "Release", in "Platform" select <New...>, click "OK", then click "Close". Now compilation mode has been changed from the default Win32 to x64 (i.e. Windows 64bit).

3 Enter "Project" - "Properties", choose "Fortran" tab, then
In "General" sub-tab, set "Multi-process Compilation" to "Yes (/MP)"
In "Optimization" sub-tab, set "Enable Matrix Multiply Library Call" to "Yes".
In "Preprocessor" sub-tab, set "Preprocess Source File" to "Yes (/fpp)".
In "Code Generation" sub-tab, set "Enable Enhanced Instruction Set" to "Streaming SIMD Extensions 3" (If your CPU supports AVX, set to "Intel Advanced Vector Extensions")
In "Language" sub-tab, set "Process OpenMP Directives" to "Generate Parallel Code (/Qopenmp)".
In "Diagnostics" sub-tab, set "Disable Specific Diagnostics" to "8290,8291,6371,10316,6843".
In "Libraries" sub-tab, set "Runtime Library" to "Multithread", set "Use Intel Math Kernel Library" to "Parallel", set "Use Common Windows Libraries" to "Yes".

4 Choose "Linker" tab, then
In "Input" sub-tab, write "legacy_stdio_definitions.lib" in the "Additional Dependencies" textbox.
In "System" sub-tab, set "Stack Reserve Size" sub-tab to "1900000000" (namely about 1.8GB). If you have large physical memory, you can set this value larger, so that larger system/wavefunction can be analyzed by Multiwfn without crashing.

5 Click "blockhrr_012345.f90" in Visual Studio by right mouse button, select "Properties", enter "Fortran" - "General", set "Optimization" to "Minimize Size (/O1)" (otherwise the compilation may take a few hours!)

6 Compiling this project by choosing "Build" - "Build Solution". Error may encounter during the compliation, it doesn't matter, in this case clicking "function.f90" by right mouse button, select "Compile" to solely compile this file, and then choose "Build" - "Build Solution" again, the compilation should normally continue.

Compilation of blockhrr_012345.f90 is the most time-consuming step, it usually takes 10+ minutes.

Finally you will get "x64\Release\Multiwfn.exe" in the project folder. Then copy this file into Multiwfn binary package to overwrite the old one.

Best,

Tian

Offline

Board footer

Powered by FluxBB