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] bug in nc_open_par?

As I stated in my original post - this works with the F90 interface.
Surprising since the F90 interface calls the c code.


On Wed, Feb 12, 2014 at 1:20 PM, Kent Yang <myang6@xxxxxxxxxxxx> wrote:

>  Not sure if this is relevant. Previously you may need to specify
> disable-shared in the ./configure to build parallel netCDF-4.
>
>
>
> Kent
>
>
>
> *From:* netcdfgroup-bounces@xxxxxxxxxxxxxxxx [mailto:
> netcdfgroup-bounces@xxxxxxxxxxxxxxxx] *On Behalf Of *Jim Edwards
> *Sent:* Wednesday, February 12, 2014 11:57 AM
> *To:* dmh@xxxxxxxxxxxxxxxx
> *Cc:* netcdfgroup@xxxxxxxxxxxxxxxx
> *Subject:* Re: [netcdfgroup] bug in nc_open_par?
>
>
>
>
>
>
>
> On Wed, Feb 12, 2014 at 10:39 AM, Dennis Heimbigner <dmh@xxxxxxxxxxxxxxxx>
> wrote:
>
> Two questions:
> 1. what ./configure flags are you using?
>
>
>
> ./configure --prefix=/glade/apps/opt/netcdf-mpi/4.3.0/intel/13.1.2
> --enable-dap --enable-netcdf4 --enable-shared --enable-mmap
> --enable-diskless
>
> Looking at the config.log I see:
>
> configure:16420: checking whether parallel I/O features are to be included
> configure:16422: result: yes
>
>
> #define USE_PARALLEL_POSIX 1
> #define USE_PARALLEL_MPIO 1
> #define USE_PARALLEL 1
>
>
>
>
>
> 2. what version of netcdf are you using?
>
>
>  Using netcdf 4.3.0 built with hdf5 1.8.11
>
> =Dennis Heimbigner
>  Unidata
>
> Jim Edwards wrote:
>
> I have a very simple unit test that is failing when I try to use netcdf4
> parallel.   The test creates a file, calls enddef, closes the file, then
> trys to reopen it.   Using netcdf 4.3.0 built with hdf5 1.8.11 I am getting
> an assert error when I run this test,
>    3:testnetcdf4: nc4file.c:2858: NC4_open: Assertion `0' failed.
>    0:testnetcdf4: nc4file.c:2858: NC4_open: Assertion `0' failed.
>    1:testnetcdf4: nc4file.c:2858: NC4_open: Assertion `0' failed.
>    2:testnetcdf4: nc4file.c:2858: NC4_open: Assertion `0' failed.
>
> The same test written in F90 instead of C passes.
>
> #include <netcdf.h>
> #include <mpi.h>
> #include <netcdf_par.h>
>
> int main( int *argc, char ***argv)
> {
>   int mype, npe;
>   int fh, ierr;
>   MPI_Init(argc,argv);
>   MPI_Comm_size(MPI_COMM_WORLD, &npe);
>   MPI_Comm_rank(MPI_COMM_WORLD, &mype);
>
>   ierr = nc_create_par("try.nc",NC_MPIIO, MPI_COMM_WORLD, MPI_INFO_NULL,
> &fh);
>   printf("%d %d\n",__LINE__,ierr);
>   ierr = nc_enddef(fh);
>   printf("%d %d\n",__LINE__,ierr);
>   ierr = nc_close(fh);
>   printf("%d %d\n",__LINE__,ierr);
>
>   ierr = nc_open_par("try.nc",NC_MPIIO, MPI_COMM_WORLD, MPI_INFO_NULL,
> &fh);
>   printf("%d %d\n",__LINE__,ierr);
>   ierr = nc_close(fh);
>   printf("%d %d\n",__LINE__,ierr);
>
>   MPI_Finalize();
> }
>
>
>
>
>
>   ------------------------------------------------------------------------
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
>
>
>
> --
>
> Jim Edwards
>
> CESM Software Engineering Group
> National Center for Atmospheric Research
> Boulder, CO
> 303-497-1842
>



-- 
Jim Edwards

CESM Software Engineering Group
National Center for Atmospheric Research
Boulder, CO
303-497-1842
  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: