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" <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: Bart Brashers <bbrashers@xxxxxxxxxxx>
  • Date: Mon, 2 Mar 2020 16:58:21 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ramboll.com; dmarc=pass action=none header.from=ramboll.com; dkim=pass header.d=ramboll.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qyU4Ezx3KzGck94B/CC8ZI3HoMmuPzBR1DfK9sr+uSI=; b=Ix82gmmyB5CyZpXsxJn4mrjxxT67A/frGSHFaDAm2a3NX3HFCmMgpfAbwhnwnJG0St8k6czOSTT8BlSH8ZQ4npBp14YCYsAV2RmdVlca8IQvLnlZG0/dfDcEi+R8ZDwTJ/hFkc3de9QUESRDAB0WxhswtUN7kkrCKSxpM9ZgdWF30u+kBUiqhcS2oacL5M3SzfE4Q8/UxPLosXyaUmOnPKDeJ/ijLo+lP+tZg9YZs2dh4jOSTV7e4MQiBbukWE3vsb6KRmSqyXCm3I1kimkuqZnnJTXukKyia3v7YM6iXA1xcpmkzffBp6SwqMI7JCYB3ftQTI3e+oQVDS/p+IJ7rg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NwONeop4DY29qCdUh4kBQ1M6EI8ar27sNn77UF8245x3t98lUfGPg6n0CKMA2BZS7Ko+AYmN9NDgzxkOIXH6Vq7trebpprbTA3mjrDw5Gog3C4KZKSnyTiZHYwtHNf4E4r8gwZRpi8Ohf+zBdrJbYLS/UhbNm5HLYG2Fdqmaffg+1WBIdymk55XToufnetaWncN2k1LStFY+XjY8VR8kG7oy8xX03fhZAWeDR/oqYNcNKXg0oeRe7oxkHXPptiy+g71Q04SA3YNhZ+z4ERtMo4g6vAfNzslh8kOgmh0wFyUp6pFLn0orHIgBVBZ0CrL1u8Fv70REuMNc6A003/ZFbg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=bbrashers@xxxxxxxxxxx;
The last time I tried to use netcdf-fortran on Windows (early 4.1.x series, 
using gfortran) it did not support opening files larger than 2 GB. Have there 
been reports saying that has been fixed?

I support an EPA program that reads WRF data, and need to support both Linux 
and Windows – but I can deliver just the executable to Windows users. I would 
be willing to buy the ifort Windows compiler, if I knew it worked for large 
files.

- Bart

From: netcdfgroup <netcdfgroup-bounces@xxxxxxxxxxxxxxxx> On Behalf Of Ed 
Hartnett
Sent: Monday, March 02, 2020 5:31 AM
To: Michael.Rachner@xxxxxx
Cc: NetCDF Group List <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?

Have you tried building netcdf-fortran with cmake on windows? It does work, I 
believe...

On Mon, Mar 2, 2020 at 2:39 AM 
<Michael.Rachner@xxxxxx<mailto:Michael.Rachner@xxxxxx>> wrote:
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://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.unidata.ucar.edu%2Fsoftware%2Fnetcdf%2Fdocs%2F&data=02%7C01%7Cbbrashers%40ramboll.com%7C0616959b3d3547534c2608d7beae0ea6%7Cc8823c91be814f89b0246c3dd789c106%7C0%7C0%7C637187527117239776&sdata=42hksz54g3g5QolBbF5I6j9%2BH%2BEKXr2mpPP5KFgiXl8%3D&reserved=0>,
 
C++<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.unidata.ucar.edu%2Fsoftware%2Fnetcdf%2Fdocs%2F&data=02%7C01%7Cbbrashers%40ramboll.com%7C0616959b3d3547534c2608d7beae0ea6%7Cc8823c91be814f89b0246c3dd789c106%7C0%7C0%7C637187527117239776&sdata=42hksz54g3g5QolBbF5I6j9%2BH%2BEKXr2mpPP5KFgiXl8%3D&reserved=0>,
 
Java<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.unidata.ucar.edu%2Fsoftware%2Fthredds%2Fcurrent%2Fnetcdf-java%2F&data=02%7C01%7Cbbrashers%40ramboll.com%7C0616959b3d3547534c2608d7beae0ea6%7Cc8823c91be814f89b0246c3dd789c106%7C0%7C0%7C637187527117239776&sdata=44OpVWRyN%2FChzEc0753JHWysLIzuMGgczpgzkcO2pus%3D&reserved=0>,
 and 
Fortran<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.unidata.ucar.edu%2Fsoftware%2Fnetcdf%2Fdocs-fortran%2F&data=02%7C01%7Cbbrashers%40ramboll.com%7C0616959b3d3547534c2608d7beae0ea6%7Cc8823c91be814f89b0246c3dd789c106%7C0%7C0%7C637187527117249733&sdata=VvurG3xEQpe%2FsXQEZ%2Bro8aAPNADN5Wbttb3PsXo5gfQ%3D&reserved=0>.”
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<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/<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flinuxhint.com%2Finstall_ubuntu_windows_10_wsl%2F&data=02%7C01%7Cbbrashers%40ramboll.com%7C0616959b3d3547534c2608d7beae0ea6%7Cc8823c91be814f89b0246c3dd789c106%7C0%7C0%7C637187527117249733&sdata=PKntOh59nx5doHxIY8meZ54g1hMQIElwlsWwbD6rhN8%3D&reserved=0>

-- 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/<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.unidata.ucar.edu%2Fmailing_lists%2F&data=02%7C01%7Cbbrashers%40ramboll.com%7C0616959b3d3547534c2608d7beae0ea6%7Cc8823c91be814f89b0246c3dd789c106%7C0%7C0%7C637187527117259707&sdata=4S2RNbZ%2Br%2Fom7QxvDioKUsZZ3%2FgPwm%2FSwoHOZiRcMa0%3D&reserved=0>
_______________________________________________
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/<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.unidata.ucar.edu%2Fmailing_lists%2F&data=02%7C01%7Cbbrashers%40ramboll.com%7C0616959b3d3547534c2608d7beae0ea6%7Cc8823c91be814f89b0246c3dd789c106%7C0%7C0%7C637187527117259707&sdata=4S2RNbZ%2Br%2Fom7QxvDioKUsZZ3%2FgPwm%2FSwoHOZiRcMa0%3D&reserved=0>
  • 2020 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: