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> 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://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> 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
> For list information or to unsubscribe,  visit:
> https://www.unidata.ucar.edu/mailing_lists/
>
> _______________________________________________
> 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
> 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: