<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>Sorry, I didn't notice your email. Anyway, I uninstalled Intel
      MPI and replaces it with MS MPI with Intel ifort. It's working
      correctly now.</p>
    <p>So I guess the problem lies with Intel MPI.<br>
    </p>
    <div class="moz-signature">
      <p>Thank you very much.<br>
        <br>
        Yours sincerely,<br>
        <br>
        ================================================<br>
        TAY Wee-Beng 郑伟明 (Zheng Weiming)<br>
        Personal research webpage: <font color="#3366ff"><u><a class="moz-txt-link-freetext" href="http://tayweebeng.wixsite.com/website">http://tayweebeng.wixsite.com/website</a></u></font><br>
        Youtube research showcase: <u><font color="#3366ff"><a class="moz-txt-link-freetext" href="https://goo.gl/PtvdwQ">https://goo.gl/PtvdwQ</a></font></u><br>
        linkedin: <u><font color="#3366ff"><a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/tay-weebeng">https://www.linkedin.com/in/tay-weebeng</a></font></u><br>
        ================================================<br>
      </p>
    </div>
    <div class="moz-cite-prefix">On 17/4/2021 10:08 pm, Satish Balay
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:e28e32cc-feca-ba0-5730-19914668dee@mcs.anl.gov">
      <pre class="moz-quote-pre" wrap="">Can you try editing this example and changing PETSC_COMM_WORLD to MPI_COMM_WORLD - and
see if that works?

Satish

On Fri, 16 Apr 2021, TAY wee-beng wrote:

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Hi,

There's no error.log.

I have removed the LP64 lib but the error is still the same during Fortran
test below. Any other solution?

$ make PETSC_DIR=/cygdrive/e/wtay/Downloads/Source_codes/petsc-main
PETSC_ARCH=petsc-dev_win64_impi_vs2017 check
Running check examples to verify correct installation
Using PETSC_DIR=/cygdrive/e/wtay/Downloads/Source_codes/petsc-main and
PETSC_ARCH=petsc-dev_win64_impi_vs2017
C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process
C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes
make[3]:
[/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/lib/petsc/conf/rules:350:
ex5f.PETSc] Error 2 (ignored)
*******************Error detected during compile or link!*******************
See <a class="moz-txt-link-freetext" href="http://www.mcs.anl.gov/petsc/documentation/faq.html">http://www.mcs.anl.gov/petsc/documentation/faq.html</a>
/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/src/snes/tutorials ex5f
*********************************************************
/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/lib/petsc/bin/win32fe/win32fe
ifort -MD -Z7 -fpp  -MD -Z7 -fpp
-I/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/include
-I/cygdrive/e/wtay/Downloads/Sourc
e_codes/petsc-main/petsc-dev_win64_impi_vs2017/include -I/cygdrive/c/Program\
Files\ \(x86\)/Intel/oneAPI/mpi/latest/include     ex5f.F90
-L/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/petsc-dev_win64_imp
i_vs2017/lib
-L/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/petsc-dev_win64_impi_vs2017/lib
-L/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/petsc-dev_win64_impi_vs2017/lib
-lpetsc -lflapack -lfblas /c
ygdrive/c/Program\ Files\ \(x86\)/Intel/oneAPI/mpi/latest/lib/debug/impi.lib
/cygdrive/c/Program\ Files\
\(x86\)/Intel/oneAPI/mpi/latest/lib/debug/impicxx.lib Gdi32.lib User32.lib
Advapi32.lib Kernel32.lib Ws2_3
2.lib -o ex5f
ex5f.F90(83): error #6405: The same named entity from different modules and/or
program units cannot be referenced. [PETSC_COMM_WORLD]
      call MPI_Comm_size(PETSC_COMM_WORLD,size,ierr)
-------------------------^
ex5f.F90(83): error #7112: This actual argument must not be the name of a
procedure.   [PETSC_COMM_WORLD]
      call MPI_Comm_size(PETSC_COMM_WORLD,size,ierr)
-------------------------^
ex5f.F90(84): error #6405: The same named entity from different modules and/or
program units cannot be referenced. [PETSC_COMM_WORLD]
      call MPI_Comm_rank(PETSC_COMM_WORLD,rank,ierr)
-------------------------^
ex5f.F90(84): error #7112: This actual argument must not be the name of a
procedure.   [PETSC_COMM_WORLD]
      call MPI_Comm_rank(PETSC_COMM_WORLD,rank,ierr)
-------------------------^
ex5f.F90(96): error #6405: The same named entity from different modules and/or
program units cannot be referenced. [PETSC_COMM_WORLD]
        ierr = PETSC_ERR_ARG_OUTOFRANGE; call
PetscError(PETSC_COMM_WORLD,ierr,0,'Lambda'); call
MPIU_Abort(PETSC_COMM_WORLD,ierr)
---------------------------------------------------------^
ex5f.F90(96): error #6405: The same named entity from different modules and/or
program units cannot be referenced. [PETSC_COMM_WORLD]
        ierr = PETSC_ERR_ARG_OUTOFRANGE; call
PetscError(PETSC_COMM_WORLD,ierr,0,'Lambda'); call
MPIU_Abort(PETSC_COMM_WORLD,ierr)
------------------------------------------------------------------------------------------------------------^
ex5f.F90(96): error #7112: This actual argument must not be the name of a
procedure.   [PETSC_COMM_WORLD]
        ierr = PETSC_ERR_ARG_OUTOFRANGE; call
PetscError(PETSC_COMM_WORLD,ierr,0,'Lambda'); call
MPIU_Abort(PETSC_COMM_WORLD,ierr)
------------------------------------------------------------------------------------------------------------^
ex5f.F90(103): error #6405: The same named entity from different modules
and/or program units cannot be referenced. [PETSC_COMM_WORLD]
      call SNESCreate(PETSC_COMM_WORLD,snes,ierr)
----------------------^
ex5f.F90(103): error #7112: This actual argument must not be the name of a
procedure.   [PETSC_COMM_WORLD]
      call SNESCreate(PETSC_COMM_WORLD,snes,ierr)
----------------------^
ex5f.F90(120): error #6405: The same named entity from different modules
and/or program units cannot be referenced. [PETSC_COMM_WORLD]
      call DMDACreate2d(PETSC_COMM_WORLD,DM_BOUNDARY_NONE,DM_BOUNDARY_NONE, &
------------------------^
ex5f.F90(120): error #6285: There is no matching specific subroutine for this
generic subroutine call.   [DMDACREATE2D]
      call DMDACreate2d(PETSC_COMM_WORLD,DM_BOUNDARY_NONE,DM_BOUNDARY_NONE, &
-----------^
compilation aborted for ex5f.F90 (code 1)
make[4]: ***
[/cygdrive/e/wtay/Downloads/Source_codes/petsc-main/lib/petsc/conf/test:23:
ex5f] Error 1
Completed test examples

Thank you very much.

Yours sincerely,

================================================
TAY Wee-Beng 郑伟明 (Zheng Weiming)
Personal research webpage: _<a class="moz-txt-link-freetext" href="http://tayweebeng.wixsite.com/website_">http://tayweebeng.wixsite.com/website_</a>
Youtube research showcase: _<a class="moz-txt-link-freetext" href="https://goo.gl/PtvdwQ_">https://goo.gl/PtvdwQ_</a>
linkedin: _<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/tay-weebeng_">https://www.linkedin.com/in/tay-weebeng_</a>
================================================


</pre>
        <pre class="moz-quote-pre" wrap="">
</pre>
      </blockquote>
    </blockquote>
  </body>
</html>