Commit daede819 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

examples update

parent 9fcc2be6
......@@ -95,6 +95,13 @@ examples/cdi_write_ens.c -text
examples/cdi_write_f.f -text
examples/cdi_write_f2003.f90 -text
examples/compf -text
examples/pio/Makefile.am -text
examples/pio/Makefile.in -text
examples/pio/cdi.inc -text
examples/pio/collectData.c -text
examples/pio/collectData2003.F90 -text
examples/pio/collectDataNStreams.c -text
examples/pio/compareResourcesArray.c -text
interfaces/CdiInfo.cpp -text
interfaces/Makefile.am -text
interfaces/Makefile.in -text
......@@ -155,13 +162,6 @@ pioDoc/tex/pio_docu.tex -text
pioDoc/tex/stages.tex -text
pioDoc/tex/subprograms.tex -text
pioDoc/tex/timestepping.tex -text
pioExamples/Makefile.am -text
pioExamples/Makefile.in -text
pioExamples/cdi.inc -text
pioExamples/collectData.c -text
pioExamples/collectData2003.F90 -text
pioExamples/collectDataNStreams.c -text
pioExamples/compareResourcesArray.c -text
src/Makefile.am -text
src/Makefile.in -text
src/basetime.c -text
......
## Process this file with automake to produce Makefile.in
#
SUBDIRS = src interfaces app examples tests pioExamples
SUBDIRS = src interfaces app examples tests examples/pio
#
EXTRA_DIST=config/default \
doc/cdi_cman.pdf \
......
......@@ -174,9 +174,6 @@ ENABLE_CGRIBEX = @ENABLE_CGRIBEX@
ENABLE_EXTRA = @ENABLE_EXTRA@
ENABLE_GRIB = @ENABLE_GRIB@
ENABLE_IEG = @ENABLE_IEG@
ENABLE_NC2 = @ENABLE_NC2@
ENABLE_NC4 = @ENABLE_NC4@
ENABLE_NETCDF = @ENABLE_NETCDF@
ENABLE_PYTHON = @ENABLE_PYTHON@
ENABLE_RUBY = @ENABLE_RUBY@
ENABLE_SERVICE = @ENABLE_SERVICE@
......@@ -320,7 +317,7 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
#
SUBDIRS = src interfaces app examples tests pioExamples
SUBDIRS = src interfaces app examples tests examples/pio
#
EXTRA_DIST = config/default \
doc/cdi_cman.pdf \
......
......@@ -148,9 +148,6 @@ ENABLE_CGRIBEX = @ENABLE_CGRIBEX@
ENABLE_EXTRA = @ENABLE_EXTRA@
ENABLE_GRIB = @ENABLE_GRIB@
ENABLE_IEG = @ENABLE_IEG@
ENABLE_NC2 = @ENABLE_NC2@
ENABLE_NC4 = @ENABLE_NC4@
ENABLE_NETCDF = @ENABLE_NETCDF@
ENABLE_PYTHON = @ENABLE_PYTHON@
ENABLE_RUBY = @ENABLE_RUBY@
ENABLE_SERVICE = @ENABLE_SERVICE@
......
......@@ -680,9 +680,6 @@ JASPER_LIBS
NETCDF_LIBS
NETCDF_INCLUDE
NETCDF_ROOT
ENABLE_NC4
ENABLE_NC2
ENABLE_NETCDF
NC_CONFIG
HDF5_LIBS
HDF5_INCLUDE
......@@ -25242,9 +25239,6 @@ fi
NETCDF_ROOT=''
NETCDF_INCLUDE=''
NETCDF_LIBS=''
ENABLE_NETCDF=no
ENABLE_NC2=no
ENABLE_NC4=no
 
# Check whether --with-netcdf was given.
if test "${with_netcdf+set}" = set; then :
......@@ -25323,7 +25317,6 @@ if test "$ac_res" != no; then :
 
$as_echo "#define HAVE_LIBNETCDF 1" >>confdefs.h
 
ENABLE_NETCDF=yes
else
as_fn_error $? "Could not link to netcdf library" "$LINENO" 5
fi
......@@ -25375,7 +25368,6 @@ $as_echo "#define HAVE_NETCDF2 1" >>confdefs.h
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
ENABLE_NC2=yes
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
......@@ -25386,7 +25378,6 @@ $as_echo_n "checking netcdf's nc4 support... " >&6; }
 
$as_echo "#define HAVE_NETCDF4 1" >>confdefs.h
 
ENABLE_NC4=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
......@@ -25469,7 +25460,6 @@ if test "$ac_res" != no; then :
 
$as_echo "#define HAVE_LIBNETCDF 1" >>confdefs.h
 
ENABLE_NETCDF=yes
else
as_fn_error $? "Could not link to netcdf library" "$LINENO" 5
fi
......@@ -25534,7 +25524,6 @@ $as_echo_n "checking netcdf's nc2 support... " >&6; }
 
$as_echo "#define HAVE_NETCDF2 1" >>confdefs.h
 
ENABLE_NC2=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
......@@ -25547,7 +25536,6 @@ $as_echo_n "checking netcdf's nc4 support... " >&6; }
 
$as_echo "#define HAVE_NETCDF4 1" >>confdefs.h
 
ENABLE_NC4=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
......@@ -25575,9 +25563,6 @@ fi
 
 
 
# ----------------------------------------------------------------------
# Link application with JASPER library (needed for GRIB2 compression)
JASPER_LIBS=''
......@@ -26968,7 +26953,7 @@ fi
ac_config_files="$ac_config_files tests/test_cksum_grib tests/test_cksum_nc tests/test_cksum_nc2 tests/test_cksum_nc4 tests/test_cksum_extra tests/test_cksum_service tests/test_cksum_ieg tests/pio_write_run tests/pio_cksum_mpinonb tests/pio_cksum_fpguard tests/pio_cksum_asynch tests/pio_cksum_writer util/serialrun"
 
 
ac_config_files="$ac_config_files Makefile src/Makefile interfaces/Makefile app/Makefile tests/Makefile examples/Makefile cdi.settings pioExamples/Makefile src/pkgconfig/cdi.pc"
ac_config_files="$ac_config_files Makefile src/Makefile interfaces/Makefile app/Makefile tests/Makefile examples/Makefile cdi.settings examples/pio/Makefile src/pkgconfig/cdi.pc"
 
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
......@@ -28307,7 +28292,7 @@ do
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
"examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
"cdi.settings") CONFIG_FILES="$CONFIG_FILES cdi.settings" ;;
"pioExamples/Makefile") CONFIG_FILES="$CONFIG_FILES pioExamples/Makefile" ;;
"examples/pio/Makefile") CONFIG_FILES="$CONFIG_FILES examples/pio/Makefile" ;;
"src/pkgconfig/cdi.pc") CONFIG_FILES="$CONFIG_FILES src/pkgconfig/cdi.pc" ;;
 
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
......
......@@ -195,7 +195,7 @@ AC_CONFIG_FILES([tests/test_cksum_grib \
AC_OUTPUT([Makefile src/Makefile interfaces/Makefile app/Makefile \
tests/Makefile examples/Makefile cdi.settings \
pioExamples/Makefile src/pkgconfig/cdi.pc])
examples/pio/Makefile src/pkgconfig/cdi.pc])
# ----------------------------------------------------------------------
# Show configuration
......
......@@ -177,9 +177,6 @@ ENABLE_CGRIBEX = @ENABLE_CGRIBEX@
ENABLE_EXTRA = @ENABLE_EXTRA@
ENABLE_GRIB = @ENABLE_GRIB@
ENABLE_IEG = @ENABLE_IEG@
ENABLE_NC2 = @ENABLE_NC2@
ENABLE_NC4 = @ENABLE_NC4@
ENABLE_NETCDF = @ENABLE_NETCDF@
ENABLE_PYTHON = @ENABLE_PYTHON@
ENABLE_RUBY = @ENABLE_RUBY@
ENABLE_SERVICE = @ENABLE_SERVICE@
......
#include <stdio.h>
#include "cdi.h"
extern void reshListPrint ( char * filename );
int nlon = 12; // Number of longitudes
int nlat = 6; // Number of latitudes
int nlev = 5; // Number of levels
......@@ -49,8 +47,6 @@ int main(void)
streamReadVar(streamID, varID2, var2, &nmiss);
}
reshListPrint ( "reshListRead" );
// Close the input stream
streamClose(streamID);
......
......@@ -12,16 +12,16 @@ AM_CFLAGS=-I$(top_srcdir)/src
collectData_SOURCES=collectData.c
collectData_LDADD=-L../src -lcdi
collectData_LDADD=-L../../src -lcdi
collectData2003_SOURCES=collectData2003.F90
collectData2003_LDADD=-L../src -lcdi
collectData2003_LDADD=-L../../src -lcdi
collectDataNStreams_SOURCES=collectDataNStreams.c
collectDataNStreams_LDADD=-L../src -lcdi
collectDataNStreams_LDADD=-L../../src -lcdi
compareResourcesArray_SOURCES=compareResourcesArray.c
compareResourcesArray_LDADD=-L../src -lcdi
\ No newline at end of file
compareResourcesArray_LDADD=-L../../src -lcdi
\ No newline at end of file
......@@ -55,7 +55,7 @@ noinst_PROGRAMS = collectData$(EXEEXT) collectDataNStreams$(EXEEXT) \
$(am__EXEEXT_1) $(am__EXEEXT_2)
@USE_MPI_TRUE@am__append_1 = compareResourcesArray
@USE_FC_TRUE@am__append_2 = collectData2003
subdir = pioExamples
subdir = examples/pio
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = \
......@@ -160,9 +160,6 @@ ENABLE_CGRIBEX = @ENABLE_CGRIBEX@
ENABLE_EXTRA = @ENABLE_EXTRA@
ENABLE_GRIB = @ENABLE_GRIB@
ENABLE_IEG = @ENABLE_IEG@
ENABLE_NC2 = @ENABLE_NC2@
ENABLE_NC4 = @ENABLE_NC4@
ENABLE_NETCDF = @ENABLE_NETCDF@
ENABLE_PYTHON = @ENABLE_PYTHON@
ENABLE_RUBY = @ENABLE_RUBY@
ENABLE_SERVICE = @ENABLE_SERVICE@
......@@ -306,13 +303,13 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AM_CFLAGS = -I$(top_srcdir)/src
collectData_SOURCES = collectData.c
collectData_LDADD = -L../src -lcdi
collectData_LDADD = -L../../src -lcdi
collectData2003_SOURCES = collectData2003.F90
collectData2003_LDADD = -L../src -lcdi
collectData2003_LDADD = -L../../src -lcdi
collectDataNStreams_SOURCES = collectDataNStreams.c
collectDataNStreams_LDADD = -L../src -lcdi
collectDataNStreams_LDADD = -L../../src -lcdi
compareResourcesArray_SOURCES = compareResourcesArray.c
compareResourcesArray_LDADD = -L../src -lcdi
compareResourcesArray_LDADD = -L../../src -lcdi
all: all-am
.SUFFIXES:
......@@ -326,9 +323,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__confi
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pioExamples/Makefile'; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/pio/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu pioExamples/Makefile
$(AUTOMAKE) --gnu examples/pio/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
......
......@@ -165,9 +165,6 @@ ENABLE_CGRIBEX = @ENABLE_CGRIBEX@
ENABLE_EXTRA = @ENABLE_EXTRA@
ENABLE_GRIB = @ENABLE_GRIB@
ENABLE_IEG = @ENABLE_IEG@
ENABLE_NC2 = @ENABLE_NC2@
ENABLE_NC4 = @ENABLE_NC4@
ENABLE_NETCDF = @ENABLE_NETCDF@
ENABLE_PYTHON = @ENABLE_PYTHON@
ENABLE_RUBY = @ENABLE_RUBY@
ENABLE_SERVICE = @ENABLE_SERVICE@
......
......@@ -184,9 +184,6 @@ ENABLE_CGRIBEX = @ENABLE_CGRIBEX@
ENABLE_EXTRA = @ENABLE_EXTRA@
ENABLE_GRIB = @ENABLE_GRIB@
ENABLE_IEG = @ENABLE_IEG@
ENABLE_NC2 = @ENABLE_NC2@
ENABLE_NC4 = @ENABLE_NC4@
ENABLE_NETCDF = @ENABLE_NETCDF@
ENABLE_PYTHON = @ENABLE_PYTHON@
ENABLE_RUBY = @ENABLE_RUBY@
ENABLE_SERVICE = @ENABLE_SERVICE@
......
......@@ -160,9 +160,6 @@ ENABLE_CGRIBEX = @ENABLE_CGRIBEX@
ENABLE_EXTRA = @ENABLE_EXTRA@
ENABLE_GRIB = @ENABLE_GRIB@
ENABLE_IEG = @ENABLE_IEG@
ENABLE_NC2 = @ENABLE_NC2@
ENABLE_NC4 = @ENABLE_NC4@
ENABLE_NETCDF = @ENABLE_NETCDF@
ENABLE_PYTHON = @ENABLE_PYTHON@
ENABLE_RUBY = @ENABLE_RUBY@
ENABLE_SERVICE = @ENABLE_SERVICE@
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment