This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Date: Tue, 08 Jul 1997 14:42:50 +0900 From: Jing-Hsien Chiang <address@hidden> To: "Glenn P. Davis" <address@hidden> Subject: Re: 970624: Ask for help on nf_test with win32_install--jchiang [ Attachment (text/plain): 4668 bytes Character set: iso-2022-jp plain text ]
Hi, Glenn I have just been able to access Digital Visual Fortran(DVF5.0) and tried again to fix the problem I asked for help. It works smoothly this time. While I was working on this try. I found I made a mistake on last tried on fortran/ftest. Thus, I'm writing to express my apology for that mistake. Glenn P. Davis wrote: > > > > > Hi, Glenn > > > > Thanks for the instruction. After reading your e-mail, > > I tried the nf_test again according to your suggestion, > > "Change X_REAL_MAX at line 123 in nf_test/tests.inc to a > > Bigger value(original value=3.4028234663852886e+37), say > > 3.40282340e+38." Unfortunately, this try failed at the > > same place mentioned at the previous mail. However, I > > have made several tries by changing X_REAL_MAX from > > 3.40282340e+36 to 3.40282347e+38, but all the tries failed > > in the same fashion. > > As you said the issue should not keep user from using > > the library, if the other tests work okay. When I was > > involving with netCDF-3.3 remaining tests were working > > properly except the subject test, nf_test. But, this time > > I got a new trouble in fortran/ftest which you mentioned > > especially. The following is the runtime message of fortran/ftest: > > ================ start of message ===================== > > ** Testing nccre ... > > ** Testing ncddef ... > > ** Testing ncvdef ... > > ** Testing ncapt, ncaptc ...NCAPT: : Unknown error > > NCAPT: : Unknown error > > NCAPT: : Unknown error > > NCAPT: : Unknown error > > > > ** Testing ncclos ... > > ** Testing ncvpt1 ... > > ** Testing ncvgt1 ... > > error in ncvgt1 byte: 0 .ne. 122 > > error in ncvgt1 short: 0 .ne. 10 > > error in ncvgt 1 float: 0.000000E+00 not close to 3.141590 > > error in ncvgt1 double: 0.000000000000000E+000 not close to > > 3.333333333000000E-001 > > ** Testing ncvpt ... > > ** Testing ncopn, ncinq, ncdinq, ncvinq, ncanam, ncainq ... > > error in ncvinq or ncvdef > > error in ncvinq or ncvdef > > error in ncvinq or ncvdef > > error in ncvinq or ncvdef > > ** Testing ncvgt, ncvgtc ... > > ncvgt of bytes, got 0 .ne. 97 > > ncvgt of bytes, got 0 .ne. 98 > > ncvgt of bytes, got 0 .ne. 99 > > ncvgt of bytes, got 0 .ne. 100 > > ncvgt of short, got 0 .ne. 10 > > ncvgt of short, got 0 .ne. 11 > > ncvgt of short, got 0 .ne. 12 > > ncvgt of short, got 0 .ne. 13 > > float error in ncvgt > > ....(omitted 398 same error messages here!).... > > float error in ncvgt > > double error in ncvgt: 1 0.000000000000000E+000.ne. > > 1.000000 > > ....(omitted 398 error messages whose value between (1,400) ).... > > double error in ncvgt: 400 0.000000000000000E+000.ne. > > 400.000000 > > ** Testing ncagt, ncagtc ... > > ** Testing ncredf, ncdren, ncvren, ncaren, ncendf ... > > error in ncvinq or ncvdef > > error in ncvinq or ncvdef > > error in ncvinq or ncvdef > > error in ncvinq or ncvdef > > ** Testing ncacpy ... > > ** Testing ncadel ... > > ** Testing fill values ... > > error in byte fill value > > error in double fill value > > error in float fill value > > error in short fill value > > =================end of message======================== > > Obviously we have more problems here than I thought. This error was caused by that I forgot to define some "NF_*_IS_C_*" macros. After correcting those macros, fortran/ftest was working properly even if use MS PowerStationFortran 4.0. Unfortunately, this correction couldn't fix the problem encountered in nf_test/nf_test. > > > Is it the time dump "MS Power Station Fortran" off use > > the newer "Digital Fortran(version 5.0)" instead? > > Well, since I don't have the older compilers, I'm not > going to be able to help you out much with this problem. > It is tricky getting all the preprocessor directives correct > for a give combination of Fortran and C compilation enviroments. > On the unix systems, the 'configure' script can set things > up pretty automatically. On Win32, VMS, and the like we > pretty much do it by hand. > > If you do get the newer fortran compiler, you might > need the newer C compiler as well. > > -glenn For your information, I've also tried using the combination of MSVC++4.2 and DVF5.0, suprisingly they work well as the combination of MSVC++5.0 and DVF5.0. That's all! J.H. -- Dr. Chiang, Jing-Hsien Energy & System Engineering Group Japan NUS Co., Ltd. Loop-X Bldg., 7F, Kaigan 3-9-15 Minato-ku, Tokyo 108, JAPAN Phone:81-3-5440-1868 Fax: 81-3-5440-1869 e-mail:address@hidden