Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
fedf70ef
Commit
fedf70ef
authored
Mar 21, 2007
by
Uwe Schulzweida
Browse files
zaxisDuplicate: bug fix
parent
68bb046b
Changes
4
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
fedf70ef
2007-05-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* zaxisDuplicate: bug fix
* cdfInqContents: check also x/yvarid to compare curvilinear grids
* Version 1.0.7 released
...
...
configure
View file @
fedf70ef
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for cdi 1.0.
6
.
# Generated by GNU Autoconf 2.59 for cdi 1.0.
7
.
#
# Report bugs to <Uwe.Schulzweida@zmaw.de>.
#
...
...
@@ -269,8 +269,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME
=
'cdi'
PACKAGE_TARNAME
=
'cdi'
PACKAGE_VERSION
=
'1.0.
6
'
PACKAGE_STRING
=
'cdi 1.0.
6
'
PACKAGE_VERSION
=
'1.0.
7
'
PACKAGE_STRING
=
'cdi 1.0.
7
'
PACKAGE_BUGREPORT
=
'Uwe.Schulzweida@zmaw.de'
# Factoring default headers for most tests.
...
...
@@ -795,7 +795,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat
<<
_ACEOF
\`
configure' configures cdi 1.0.
6
to adapt to many kinds of systems.
\`
configure' configures cdi 1.0.
7
to adapt to many kinds of systems.
Usage:
$0
[OPTION]... [VAR=VALUE]...
...
...
@@ -862,7 +862,7 @@ fi
if
test
-n
"
$ac_init_help
"
;
then
case
$ac_init_help
in
short
|
recursive
)
echo
"Configuration of cdi 1.0.
6
:"
;;
short
|
recursive
)
echo
"Configuration of cdi 1.0.
7
:"
;;
esac
cat
<<
\
_ACEOF
...
...
@@ -989,14 +989,14 @@ esac
else
echo
"
$as_me
: WARNING: no configuration information is in
$ac_dir
"
>
&2
fi
cd
$ac_popdir
cd
"
$ac_popdir
"
done
fi
test
-n
"
$ac_init_help
"
&&
exit
0
if
$ac_init_version
;
then
cat
<<
\
_ACEOF
cdi configure 1.0.
6
cdi configure 1.0.
7
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
...
...
@@ -1010,7 +1010,7 @@ cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cdi
$as_me
1.0.
6
, which was
It was created by cdi
$as_me
1.0.
7
, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0
$@
...
...
@@ -1697,7 +1697,7 @@ fi
# Define the identity of the package.
PACKAGE
=
cdi
VERSION
=
1.0.
6
VERSION
=
1.0.
7
cat
>>
confdefs.h
<<
_ACEOF
...
...
@@ -2393,8 +2393,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -2452,8 +2451,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -2569,8 +2567,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -2624,8 +2621,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -2670,8 +2666,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -2715,8 +2710,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -2989,7 +2983,7 @@ fi
# Provide some information about the compiler.
echo
"
$as_me
:29
92
:"
\
echo
"
$as_me
:29
86
:"
\
"checking for Fortran 77 compiler version"
>
&5
ac_compiler
=
`
set
X
$ac_compile
;
echo
$2
`
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_compiler
--version </dev/null >&5
\"
"
)
>
&5
...
...
@@ -3035,8 +3029,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -3085,8 +3078,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -3386,8 +3378,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -3416,8 +3407,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -3487,8 +3477,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -3540,8 +3529,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -3612,8 +3600,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -3665,8 +3652,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -3985,8 +3971,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -4156,8 +4141,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -4225,8 +4209,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -4410,8 +4393,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -4659,8 +4641,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -4864,8 +4845,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -5019,8 +4999,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -5144,8 +5123,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -5307,8 +5285,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -5389,8 +5366,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{
ac_try
=
'test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
...
...
@@ -5837,7 +5813,7 @@ _ASBOX
} >&5
cat >&5 <<_CSEOF
This file was extended by cdi
$as_me
1.0.
6
, which was
This file was extended by cdi
$as_me
1.0.
7
, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES =
$CONFIG_FILES
...
...
@@ -5900,7 +5876,7 @@ _ACEOF
cat
>>
$CONFIG_STATUS
<<
_ACEOF
ac_cs_version="
\\
cdi config.status 1.0.
6
cdi config.status 1.0.
7
configured by
$0
, generated by GNU Autoconf 2.59,
with options
\\
"`echo "
$ac_configure_args
" | sed 's/[
\\
""
\`\$
]/
\\\\
&/g'`
\\
"
...
...
@@ -6323,11 +6299,6 @@ esac
*) ac_INSTALL=
$ac_top_builddir$INSTALL
;;
esac
if test x"
$ac_file
" != x-; then
{ echo "
$as_me
:
$LINENO
: creating
$ac_file
" >&5
echo "
$as_me
: creating
$ac_file
" >&6;}
rm -f "
$ac_file
"
fi
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use
$as_me
), people would be surprised to read:
# /* config.h. Generated by config.status. */
...
...
@@ -6366,6 +6337,12 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
fi;;
esac
done` || { (exit 1); exit 1; }
if test x"
$ac_file
" != x-; then
{ echo "
$as_me
:
$LINENO
: creating
$ac_file
" >&5
echo "
$as_me
: creating
$ac_file
" >&6;}
rm -f "
$ac_file
"
fi
_ACEOF
cat
>>
$CONFIG_STATUS
<<
_ACEOF
sed "
$ac_vpsub
...
...
src/stream_cdf.c
View file @
fedf70ef
...
...
@@ -2,6 +2,7 @@
# include "config.h"
#endif
#include
<stdio.h>
#include
<string.h>
#include
<ctype.h>
...
...
@@ -3232,6 +3233,8 @@ int cdfInqContents(int streamID)
ncvars
[
ncvarid
].
varids
[
3
]
=
UNDEFID
;
ncvars
[
ncvarid
].
cellarea
=
UNDEFID
;
ncvars
[
ncvarid
].
tableID
=
UNDEFID
;
ncvars
[
ncvarid
].
xtype
=
0
;
ncvars
[
ncvarid
].
ndims
=
0
;
ncvars
[
ncvarid
].
gmapid
=
UNDEFID
;
ncvars
[
ncvarid
].
vlen
=
0
;
ncvars
[
ncvarid
].
vdata
=
NULL
;
...
...
@@ -4063,7 +4066,7 @@ int cdfInqContents(int streamID)
else
if
(
ncvars
[
ncvarid
].
dimtype
[
i
]
==
Y_AXIS
)
ydimid
=
ncvars
[
ncvarid
].
dimids
[
i
];
}
if
(
ncvars
[
ncvarid
].
xvarid
!=
UNDEFID
)
xvarid
=
ncvars
[
ncvarid
].
xvarid
;
else
if
(
xdimid
!=
UNDEFID
)
...
...
@@ -4073,7 +4076,7 @@ int cdfInqContents(int streamID)
yvarid
=
ncvars
[
ncvarid
].
yvarid
;
else
if
(
ydimid
!=
UNDEFID
)
yvarid
=
ncdims
[
ydimid
].
ncvarid
;
/*
if ( xdimid != UNDEFID )
xvarid = ncdims[xdimid].ncvarid;
...
...
src/zaxis.c
View file @
fedf70ef
...
...
@@ -1162,32 +1162,32 @@ int zaxisDuplicate(int zaxisID)
zaxis_copy
(
zaxisptrnew
,
zaxisptr
);
strcpy
(
zaxisptr
->
name
,
zaxisptr
->
name
);
strcpy
(
zaxisptr
->
longname
,
zaxisptr
->
longname
);
strcpy
(
zaxisptr
->
units
,
zaxisptr
->
units
);
strcpy
(
zaxisptr
new
->
name
,
zaxisptr
->
name
);
strcpy
(
zaxisptr
new
->
longname
,
zaxisptr
->
longname
);
strcpy
(
zaxisptr
new
->
units
,
zaxisptr
->
units
);
if
(
zaxisptr
->
vals
!=
NULL
)
{
size
=
zaxissize
;
zaxisptr
->
vals
=
(
double
*
)
malloc
(
size
*
sizeof
(
double
));
memcpy
(
zaxisptr
->
vals
,
zaxisptr
->
vals
,
size
*
sizeof
(
double
));
zaxisptr
new
->
vals
=
(
double
*
)
malloc
(
size
*
sizeof
(
double
));
memcpy
(
zaxisptr
new
->
vals
,
zaxisptr
->
vals
,
size
*
sizeof
(
double
));
}
if
(
zaxisptr
->
lbounds
)
{
size
=
zaxissize
;
zaxisptr
->
lbounds
=
(
double
*
)
malloc
(
size
*
sizeof
(
double
));
memcpy
(
zaxisptr
->
lbounds
,
zaxisptr
->
lbounds
,
size
*
sizeof
(
double
));
zaxisptr
new
->
lbounds
=
(
double
*
)
malloc
(
size
*
sizeof
(
double
));
memcpy
(
zaxisptr
new
->
lbounds
,
zaxisptr
->
lbounds
,
size
*
sizeof
(
double
));
}
if
(
zaxisptr
->
ubounds
)
{
size
=
zaxissize
;
zaxisptr
->
ubounds
=
(
double
*
)
malloc
(
size
*
sizeof
(
double
));
memcpy
(
zaxisptr
->
ubounds
,
zaxisptr
->
ubounds
,
size
*
sizeof
(
double
));
zaxisptr
new
->
ubounds
=
(
double
*
)
malloc
(
size
*
sizeof
(
double
));
memcpy
(
zaxisptr
new
->
ubounds
,
zaxisptr
->
ubounds
,
size
*
sizeof
(
double
));
}
if
(
zaxisptr
->
vct
!=
NULL
)
...
...
@@ -1196,9 +1196,9 @@ int zaxisDuplicate(int zaxisID)
if
(
size
)
{
zaxisptr
->
vctsize
=
size
;
zaxisptr
->
vct
=
(
double
*
)
malloc
(
size
*
sizeof
(
double
));
memcpy
(
zaxisptr
->
vct
,
zaxisptr
->
vct
,
size
*
sizeof
(
double
));
zaxisptr
new
->
vctsize
=
size
;
zaxisptr
new
->
vct
=
(
double
*
)
malloc
(
size
*
sizeof
(
double
));
memcpy
(
zaxisptr
new
->
vct
,
zaxisptr
->
vct
,
size
*
sizeof
(
double
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment