NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] Fwd: IFORT_GeneralQuestion

Thank you,

After applying Dave's fix, I got to the next level, and found that my
modules were in fact, not working with each other. So I choose different
ones that were.

Thank you for all your help!
Amanda

On Thu, Aug 23, 2018 at 3:57 PM Richard Weed <rweed@xxxxxxxxxxxxxxxx> wrote:

> Some things to consider. module files compiled with
> different compilers are not compatible. Therefore
> a module built with Cray CCE is not compatible with
> a code built with Intel that is trying to use associate
> the module or a module built with gcc/gfortran is not
> compatible with code compiled with ifort. Therefore, you
> need to find out what compiler was used to build netcdf-fortran
> and the resulting .mod file. Also, you really need to make sure you have
> the path to the netcdf module specified correctly (at
> least on Linux/Unix/Mac OSX - I don't do Windows so
> I can't speak to that). This means including the path in
> a -I entry on the compile line when you invoke the compiler (I believe
> Intel
> also has a -module switch that can tell the compiler where
> modules live)
>
> RW
>
> On 08/23/2018 03:49 PM, Marco Atzeri wrote:
> > Am 23.08.2018 um 21:05 schrieb Amanda Tritinger:
> >> Hello NetCDF Group,____
> >>
> >> __ __
> >>
> >> I am trying to compile a code that has the 'use netcdf' in it using the
> ifort
> >> compiler, but get the following error:____
> >>
> >> __ __
> >>
> >> *myprogram.for(2): error #7002: Error in opening the compiled module
> file.
> >> Check INCLUDE paths.   [NETCDF]*____
> >>
> >> *      use netcdf*____
> >>
> >> *----------^*____
> >>
> >> *compilation aborted for **myprogram.for (code 1)*____
> >>
> >> __ __
> >>
> >> Loaded on my machine is the cray-netcdf/4.6.1.0 <http://4.6.1.0/>
> module (I
> >> got a similar error with an intel 4.4.1.1 version as well). My command
> looked
> >> like this:____
> >>
> >> __ __
> >>
> >> *ifort myprogram.for -I/usr/local/netcdf/include *____
> >>
> >> __ __
> >>
> >> What am I missing? Thank you for your time,____
> >>
> >> Amanda Tritinger____
> >>
> >
> > where is the netcdf.mod ?
> >
> >
> >
> > ---
> > Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
> > https://www.avast.com/antivirus
> >
> > _______________________________________________
> > 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:
> > http://www.unidata.ucar.edu/mailing_lists/
>
> --
> ---
> -----
>
> Richard Weed, Ph.D.
> Associate Research Professor
> Center for Advanced Vehicular Systems (CAVS)
> Mississippi State University
>
> email: rweed@xxxxxxxxxxxxxxxx
> Phone: (662) 325-5450
>
> _______________________________________________
> 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:
> http://www.unidata.ucar.edu/mailing_lists/
>


-- 
*Amanda Tritinger*
Doctoral Student in Coastal Engineering
University of Florida (UF)
Masters in Civil Engineering
University of North Florida (UNF)
Bachelors in Environmental Engineering
University of Central Florida (UCF)
  • 2018 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: