Re: [netcdfgroup] How can I get the Fortran-interface for NetCDF-4.7.3 on Win10-PC with Intel-19.0.5 Ftn-compiler?

  • To: <netcdfgroup@xxxxxxxxxxxxxxxx>
  • Subject: Re: [netcdfgroup] How can I get the Fortran-interface for NetCDF-4.7.3 on Win10-PC with Intel-19.0.5 Ftn-compiler?
  • From: <Michael.Rachner@xxxxxx>
  • Date: Mon, 2 Mar 2020 09:39:01 +0000
  • Ironport-phdr: 9a23:dc5QsBfhWRrDk1LTQNwph8L8lGMj4u6mDksu8pMizoh2WeGdxc26YxyN2/xhgRfzUJnB7Loc0qyK6vymADRcqs7f+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3OgV6PPn6FZDPhMqrye+y54fTYwJVjzahfL9+Nhq7oRjeu8UMnIduNqk8xhTVrnZJZu9b2X5mKVWPkhnz4cu94IRt+DlKtfI78M5AX6T6f6AmQrFdET8rLWM76tD1uBfaVQeA6WcSXWsQkhpTHgjK9wr6UYvrsiv7reVyxi+XNtDrQL8uWDSi66BrSAL0iCoCKjU0/n3bhtB2galGph+quh5xzJPOYIyNNPRwYL7Tfc8US2RCUMZeVS1BDZ+zYIYUFeUNIeRYopPhq1cSrxazAxSnCuP1yj9Pg3/7xao33eMgEQ7a3AwvBcwBsHDOoNvpLqgdTeC1zK/WwjXZdP5ZxDP96JLSfh88v/6BRLR9etffx0koEgPKlFSQqYr9MjOIyusCqXKb4/B+Wu2ylm4rswRxojmzycc2jYnJnYUVyl7Y9Slj3Ik1Iti4RFZ/Yd6lFptQqi6bN4t3QsMkX2Fkojo1yroDuZO9YSMEy4wnygbCZ/CbaYSE/xHuWemLLTtlin9oe6iziwiv/US41+HwStO43EtJoydKiNXAq34A2h/J5sSZSvZw8V+t2TiR2A3Q9u1JJEU5mKrfJpI/wrM9k54evljNEyPrnUj5l62beVs/9eWt8evoeKvpq56aOoRpkA/xKL4ulda6AekgNwgOWHWU9vqk2b34+E35XK1KjvorkqnFqJzaJdoUpqq+AwJN3Igt7RixATim3toYmncJL1VLdgiZg4T0NF/BIe71Ae2+g1SqjDdr3erJMqf8DZXJNHjPiqrucqhl505dzgo808xf6opJBr0dOv7/R0z8udPCAhMkPQG5wPzrBMtg2o8GXGKAGK6ZMKfcsV+S4eIvJvGBaogUuDnhK/gq/eDhjXsjlVEBZ6amwZsXaHamEfR8OEiWfH7sgs0bHWgXoAUyVPbqh0GaUT5Pe3ayWLox5jclB4K6EYjMW46tgLOb3Ce8A51WfntLCk2KEXfpaoqLQesMZziILs98jjMLT6KhR5U/2h6zqQ+pg4dhNffery0EqYr4hp8y+PLM0ww09DB9E83bzmqEVSd5kn5PQjY32KF5rnt5y0yfyu8rvvpDCNZz+/ZNBwcmKYbHnas9FM/tHB/Hf9uAVF/gX96vG3c8Qs92xtYPZ0d7FOKmjwvfxG35PrkOira3CYwop6LAw2DqdYE61GnZkrQnjlUvXsIJKGavnOhy+xWUAofIl0SfmJGudL8Ax2meyGDWmWyDoEpUXgFqVrjddW0ZZ0ffsd2/+0jLVfmjBalxYSVbzsvXfo5LYd3ggFEAfv7oONLTeUq9n332CRveleDEV5bjZ2hIhHaVM0MDiQ1GpXs=
  • Ironport-sdr: mPz3pfA8Nr0H+74LWzHGqDr1wU8eAr7ppxnCQUQaovBKkowLU9Vb/4riUz/5IGobKX56ok2APe UcguKEMTPLbg==
Dear developers of NETCDF,

The only answer I got was the hint of Elizabeth (Thank You!). However her 
suggested way over WSL is not possible for me for different reasons.

What is needed under Win10  is  a script running directly on the Windows 
command shell (analogously as it exists under Linux),
where the User only has to provide the names of the desired (already installed) 
C-compiler and Fortran-compiler,
finally resulting in an NETCDF-installation for running application programs 
compiled with these compilers on Windows.

NETCDF provides a data exchange tool between machines on different platforms.
However, the intended universality of data exchange between machines on 
different platforms remains limited,
if the installation of NETCDF on popular platforms is difficult or actually (as 
here) not supported.
NETCDF claims: “The Unidata Program Center supports and maintains netCDF 
programming interfaces for 
C<https://www.unidata.ucar.edu/software/netcdf/docs/>, 
C++<https://www.unidata.ucar.edu/software/netcdf/docs/>, 
Java<https://www.unidata.ucar.edu/software/thredds/current/netcdf-java/>, and 
Fortran<https://www.unidata.ucar.edu/software/netcdf/docs-fortran/>.”
So far, this is not fulfilled for Fortran95 applications under Win10.

In my experience the “typical” developer prefers to improve his software inside 
(and in the limits of) his well-known development ambient (e.g. Linux, C++, …).
“Go to the borders!”   (Pope Francis)

Greetings
Michael


Von: Elizabeth A. Fischer [mailto:elizabeth.fischer@xxxxxxxxxxxx]
Gesendet: Donnerstag, 13. Februar 2020 15:34
An: Rachner, Michael
Betreff: Re: [netcdfgroup] How can I get the Fortran-interface for NetCDF-4.7.3 
on Win10-PC with Intel-19.0.5 Ftn-compiler?

Have you considered WSL+Ubuntu?  This might make your entire project easier.

https://docs.microsoft.com/en-us/windows/wsl/faq
https://linuxhint.com/install_ubuntu_windows_10_wsl/

-- Elizabeth



On Thu, Feb 13, 2020 at 9:06 AM 
<Michael.Rachner@xxxxxx<mailto:Michael.Rachner@xxxxxx>> wrote:
Dear developers of NETCDF,

I need install NETCDF with Fortran-interface on my WIN10-PC (64-bit) in order 
to use NETCDF-routines  from Fortran90-codes.
As the first step, I have already installed successfully the NETCDF-C library  
for NETCDF-4.7.3 on the Win10-PC.
What is still missing, is the Fortran-interface required to use that NETCDF-C 
library from Fortran-codes compiled with the Intel-19.0.5 Ftn-compiler.
I am no specialist for NETCDF  nor complicated builds.

Details:
As a first step I downloaded  the precompiled file   netcdf-4.7.3-NC4-64.exe   
from your website.
That precompiled file had been created using the  “cl” C-compiler  built-in in 
the VisualStudio2017, which is also present on my PC.
The installation of the precompiled NETCDF-C library was successful:
I was able to compile and run (with the cl-compiler) a simple C-testprogram 
delivered by NETCDF, which generated a netcdf-file,
and I was able to view its contents by means of  ncdump  on the WIN10-PC.
I used in a  cmd-window the command:
                cl -I"C:\netcdf-4.7.3\include" simple.c  
"C:\netcdf-4.7.3\lib\netcdf.lib"
That worked.  Fine!

On my Win10-PC the Intel-19.0.5 Fortran compiler is installed.
(It works together with the also installed VisualStudio2017, and for all I know 
uses the linker of the   cl  -compiler built-in in the VisualStudio 2017)
and I need now the NETCDF Fortran-interface  for running my Fortran90 codes 
compiled with this Intel-Ftn-compiler on my Win10-PC.
That means, I finally need something like
           a precompiled binary Ftn-module file     netcdf.mod
     or the Ftn-sourcecode of the Ftn-module   netcdf.f90
     or an include-file  for the Ftn-code                netcdf_Ftn.h

(Side-remark:  Microsoft provides for its MPI-10.0 under Windows  as the 
Fortran-interface for invoking MPI-routines  the 2nd kind of file.
                         I compile it together with my Fortran CFD-source code.)

Can you help me?

Greetings
  Michael


_______________________________________________
NOTE: All exchanges posted to Unidata maintained email lists are
recorded in the Unidata inquiry tracking system and made publicly
available through the web.  Users who post to any of the lists we
maintain are reminded to remove any personal information that they
do not want to be made public.


netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx<mailto:netcdfgroup@xxxxxxxxxxxxxxxx>
For list information or to unsubscribe,  visit: 
https://www.unidata.ucar.edu/mailing_lists/
  • 2020 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: