problem in gridpak

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

problem in gridpak

#1 Unread post by mashinde »

Hi,

I am using Fortran based gridpak to create curvilinear grid with refinement at the straits. But when I am trying to make to create grid exe file, then it is giving me following error, ofcourse the error is related with netcdf configuration, but i did not understand how to fix it.

[mshinde@fourier gridpak]$ make -f Makefile.Gnu
g77 -o grid -g -O2 grid.o checkdefs.o def_grid.o get_date.o lenstr.o start_plot.o vminmax.o comf.o gnbnaux.o sepeli.o sepaux.o sepx4.o genbun.o blktri.o \
-L /data/rmed16_etp1_input/netcdf-4.1.3/netcdf/lib -lnetcdf
grid.o: In function `gridplot_':
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:709: undefined reference to `pcseti_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:711: undefined reference to `set_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:712: undefined reference to `plchhq_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:715: undefined reference to `plchhq_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:735: undefined reference to `set_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:738: undefined reference to `frstpt_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:740: undefined reference to `vector_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:744: undefined reference to `frstpt_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:746: undefined reference to `vector_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:763: undefined reference to `frame_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:768: undefined reference to `set_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:769: undefined reference to `plchhq_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:778: undefined reference to `set_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:779: undefined reference to `perim_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:780: undefined reference to `cpseti_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:781: undefined reference to `cpcnrc_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:782: undefined reference to `frame_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:785: undefined reference to `set_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:786: undefined reference to `plchhq_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:795: undefined reference to `set_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:796: undefined reference to `perim_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:797: undefined reference to `cpseti_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:798: undefined reference to `cpcnrc_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:799: undefined reference to `frame_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:809: undefined reference to `set_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:810: undefined reference to `plchhq_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:811: undefined reference to `set_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:812: undefined reference to `perim_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:813: undefined reference to `cpseti_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:814: undefined reference to `cpcnrc_'
/data/rmed16_etp1_input/gridpak/gridpak/grid.F:815: undefined reference to `frame_'
def_grid.o: In function `def_grid__':
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:49: undefined reference to `nf_create__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:59: undefined reference to `nf_def_dim__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:60: undefined reference to `nf_def_dim__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:61: undefined reference to `nf_def_dim__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:62: undefined reference to `nf_def_dim__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:63: undefined reference to `nf_def_dim__'
def_grid.o:/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:64: more undefined references to `nf_def_dim__' follow
def_grid.o: In function `def_grid__':
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:118: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:124: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:127: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:130: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:135: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:136: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:138: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:140: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:141: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:143: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:148: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:149: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:151: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:153: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:155: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:157: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:158: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:160: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:162: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:163: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:165: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:167: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:168: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:170: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:173: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:174: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:176: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:178: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:180: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:182: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:184: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:185: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:187: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:188: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:190: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:191: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:193: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:194: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:201: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:202: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:204: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:205: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:206: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:208: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:212: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:213: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:215: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:216: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:217: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:219: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:223: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:224: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:226: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:228: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:230: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:231: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:233: undefined reference to `nf_put_att_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:235: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:236: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:238: undefined reference to `nf_put_att_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:247: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:248: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:250: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:251: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:253: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:254: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:256: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:257: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:262: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:263: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:265: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:267: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:272: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:273: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:275: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:277: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:279: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:280: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:282: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:284: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:286: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:287: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:289: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:290: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:292: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:293: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:295: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:296: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:301: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:302: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:304: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:305: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:306: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:308: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:309: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:310: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:312: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:313: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:314: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:316: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:317: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:318: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:320: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:321: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:322: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:324: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:325: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:326: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:328: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:329: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:330: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:332: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:336: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:337: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:339: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:341: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:342: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:344: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:346: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:347: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:349: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:351: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:352: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:354: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:356: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:357: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:359: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:361: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:362: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:364: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:366: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:367: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:369: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:371: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:372: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:374: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:379: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:380: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:382: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:384: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:387: undefined reference to `nf_put_att_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:393: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:394: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:396: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:398: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:401: undefined reference to `nf_put_att_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:407: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:408: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:410: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:412: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:415: undefined reference to `nf_put_att_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:421: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:422: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:424: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:426: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:429: undefined reference to `nf_put_att_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:438: undefined reference to `nf_def_var__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:439: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:441: undefined reference to `nf_put_att_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:447: undefined reference to `nf_enddef__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:455: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:456: undefined reference to `nf_put_var_text__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:461: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:462: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:467: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:468: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:473: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:474: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:479: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:480: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:488: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:489: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:494: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:495: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:503: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:504: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:509: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:510: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:515: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:516: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:521: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:522: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:527: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:528: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:533: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:534: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:539: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:540: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:545: undefined reference to `nf_inq_varid__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:546: undefined reference to `nf_put_var_double__'
/data/rmed16_etp1_input/gridpak/gridpak/def_grid.F:554: undefined reference to `nf_close__'
start_plot.o: In function `start_plot__':
/data/rmed16_etp1_input/gridpak/gridpak/start_plot.F:12: undefined reference to `gopks_'
/data/rmed16_etp1_input/gridpak/gridpak/start_plot.F:16: undefined reference to `gopwk_'
/data/rmed16_etp1_input/gridpak/gridpak/start_plot.F:18: undefined reference to `gacwk_'
start_plot.o: In function `end_plot__':
/data/rmed16_etp1_input/gridpak/gridpak/start_plot.F:28: undefined reference to `gdawk_'
/data/rmed16_etp1_input/gridpak/gridpak/start_plot.F:29: undefined reference to `gclwk_'
start_plot.o: In function `start_plot__':
/data/rmed16_etp1_input/gridpak/gridpak/start_plot.F:21: undefined reference to `pcseti_'
start_plot.o: In function `end_plot__':
/data/rmed16_etp1_input/gridpak/gridpak/start_plot.F:30: undefined reference to `gclks_'
collect2: ld returned 1 exit status
make: *** [grid] Error 1
==============================================================================================================

in Makefile.Gnu , there -lnetcdf_gcc, how can I get this netcdf lib ?
..
..
CDFLIB = -lnetcdf_gcc
..
..


I installed netcdf with ..

./configure --prefix=/data/rmed16_etp1_input/netcdf-4.1.3/netcdf --disable-netcdf-4 FC=gfortran
and
netcdf/lib ->
libnetcdf.a libnetcdf_c++.la libnetcdf_c++.so.4 libnetcdff.a libnetcdff.so libnetcdff.so.5.1.0 libnetcdf.so libnetcdf.so.7.1.1
libnetcdf_c++.a libnetcdf_c++.so libnetcdf_c++.so.4.1.0 libnetcdff.la libnetcdff.so.5 libnetcdf.la libnetcdf.so.7 pkgconfig

netcdf/include ->
ncvalues.h netcdfcpp.h netcdf.h netcdf.hh netcdf.inc netcdf.mod typesizes.mod


there is no -lnetcdf_gcc


can anybody know how to fix it , so i can use gridpak .


thanking you

regards

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem in gridpak

#2 Unread post by kate »

Sorry about that. Simply change -lnetcdf_gcc to -lnetcdf. I renamed that library so that it could co-exist with the same library built using a different compiler.

You are also missing references to the ncarg libraries. They come with the NCL package.

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: problem in gridpak

#3 Unread post by mashinde »

Hi kate,

I changed it to -lnetcdf , but still the same error. my flags in the Makefile_Gnu are...

CFT = g77
CPPFLAGS =
CPP = /lib/cpp -P $(CPPFLAGS)
# GLDR = ncargf77
GLDR = g77
LDR = g77
RANLIB = ranlib

LDFLAGS =
# FFLAGS = -g $(CPPFLAGS)
FFLAGS = -g -O2 $(CPPFLAGS)

# Add -I /usr/local/include for netcdf.inc
MDEPFLAGS = -I /usr/local/include
#
# libspem.a contains mud2 and saxpy
#
LIBDIR = /usr/local/lib
LIBSPEM = libspem3_dg.a
LIBNSPCG = libnspcg_d.a
CDFLIB = -lnetcdf
SPEMLIBS = -lspem3_dg $(CDFLIB)
CMATLIBS = -lspem3_dg
FLTLIBS = -lspem3_dg
DIAGLIBS =
ICELIBS = -lnspcg_d $(CDFLIB)


Is ncargf77 required ? I replaced with g77.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem in gridpak

#4 Unread post by kate »

The Netcdf issues are the same ones mentioned in the FAQ. You've been successfully running ROMS - how did you link it to Netcdf?

The other issues are with the NCARG libraries as mentioned above. You need to get the NCL code, which includes the ncargf77 script to link in all the other necessary libraries.

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: problem in gridpak

#5 Unread post by mashinde »

Hi kate

sorry about that, now i fixed it.But no i am getting following error ....

make -f Makefile.Gnu
gfortran -c -g -O2 -I/usr/local/include grid.F
gfortran -c -g -O2 -I/usr/local/include checkdefs.F
gfortran -c -g -O2 -I/usr/local/include def_grid.F
gfortran -c -g -O2 -I/usr/local/include get_date.F
gfortran -c -g -O2 -I/usr/local/include lenstr.F
gfortran -c -g -O2 -I/usr/local/include start_plot.F
gfortran -c -g -O2 -I/usr/local/include vminmax.F
gfortran -c -g -O2 -I/usr/local/include comf.F
gfortran -c -g -O2 -I/usr/local/include gnbnaux.F
gfortran -c -g -O2 -I/usr/local/include sepeli.F
gfortran -c -g -O2 -I/usr/local/include sepaux.F
gfortran -c -g -O2 -I/usr/local/include sepx4.F
gfortran -c -g -O2 -I/usr/local/include genbun.F
gfortran -c -g -O2 -I/usr/local/include blktri.F
ncargf77 -o grid -g -O2 -I/usr/local/include grid.o checkdefs.o def_grid.o get_date.o lenstr.o start_plot.o vminmax.o comf.o gnbnaux.o sepeli.o sepaux.o sepx4.o genbun.o blktri.o \
-L/usr/local/lib -lnetcdff -lnetcdf
gfortran -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -fno-second-underscore -fno-range-check -o grid -g -O2 -I/usr/local/include grid.o checkdefs.o def_grid.o get_date.o lenstr.o start_plot.o vminmax.o comf.o gnbnaux.o sepeli.o sepaux.o sepx4.o genbun.o blktri.o -L/usr/local/lib -lnetcdff -lnetcdf -L/usr/lib64/ncarg -L/usr/lib64/hdf -lncarg -lncarg_gks -lncarg_c -lX11 -lXext
gfortran -c -g -O2 -I/usr/local/include drawcoast.F
gfortran -c -g -O2 -I/usr/local/include get_xy.F
gfortran -c -g -O2 -I/usr/local/include opencdf.F
gfortran -c -g -O2 -I/usr/local/include tolat.F
gfortran -c -g -O2 -I/usr/local/include wrt_lat.F
ncargf77 -o tolat -g -O2 -I/usr/local/include drawcoast.o get_xy.o lenstr.o opencdf.o start_plot.o tolat.o vminmax.o wrt_lat.o -L/usr/local/lib -lnetcdff -lnetcdf
gfortran -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -fno-second-underscore -fno-range-check -o tolat -g -O2 -I/usr/local/include drawcoast.o get_xy.o lenstr.o opencdf.o start_plot.o tolat.o vminmax.o wrt_lat.o -L/usr/local/lib -lnetcdff -lnetcdf -L/usr/lib64/ncarg -L/usr/lib64/hdf -lncarg -lncarg_gks -lncarg_c -lX11 -lXext
gfortran -c -g -O2 -I/usr/local/include cpsfill.F
cpsfill.F:243.10:

if (fixflag) then
1
Error: IF clause at (1) requires a scalar LOGICAL expression
make: *** [cpsfill.o] Error 1



How can I fix this error ?


Thanks

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem in gridpak

#6 Unread post by kate »

Try downloading this version. If that doesn't work, let me know.

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: problem in gridpak

#7 Unread post by mashinde »

Hi kate,

Thanks for the new version. I successfully created all executables now. Now I am playing with giver USwest example. But it is not doing well.
i am getting following errors for USwest example..

grid < grid.in
rectangularity error in mapped contour at iteration 1 is 3.7708E-02
rectangularity error in mapped contour at iteration 2 is 3.4410E-03
rectangularity error in mapped contour at iteration 3 is 7.6385E-04
rectangularity error in mapped contour at iteration 4 is 3.1758E-04
rectangularity error in mapped contour at iteration 5 is 1.2746E-04
rectangularity error in mapped contour at iteration 6 is 4.9766E-05
rectangularity error in mapped contour at iteration 7 is 1.9364E-05
rectangularity error in mapped contour at iteration 8 is 7.5299E-06
area 0.1160E+13

Activated C-preprocessing Options:

DCOMPLEX Double complex
DBLEPREC Double precision
ELLIPSOID Distances computed with ellipsoidal terms
DRAW_COASTS Draw the coastlines on some plots
KEEP_SHALLOW Keep shallow areas shallow
PLOTS Write out NCAR graphics plots
minimum dx = 5629.4995
minimum dy = 12807.357

* before this I ran xpots as given in manual.

tolat shows all missing values(.... 999999995904.00000 .....)

could you please tell how can I proceed ?

thanks

regards

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem in gridpak

#8 Unread post by kate »

Did you copy the files in the USwest directory to the Include directory? Specifically, proj.h has the lat/lon bounds of your domain in the P1...P4 variables and has to include your entire domain for tolat to work.

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: problem in gridpak

#9 Unread post by mashinde »

Hi kate,

Ok.... now it is giving error while interpolating etopo5 into grid file.

/bathtub
minimum depth (negative is land elevation)
10
maximum depth
8000
apply mask? (T/F)
T

EXTRACT - cannot find variable: topo_lon

EXTRACT - cannot find variable: topo_lat
im 21601 10801 0.0000000000000000

EXTRACT - cannot find variable: topo
Maximum depth read is 0.0000000000000000
Minimum depth read is 0.0000000000000000

OPENCDF - unable to open input NetCDF file: grid_gom.nc
OPENCDF

what is command to run bathtub ?


thanks

regards

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem in gridpak

#10 Unread post by kate »

I think you have two problems here. One is the grid file. Is it called grid_gom.nc or usw_grid_1.nc? The name is compiled into those executables via the gridid.h file. If you change include files, you need to recompile - and I'm sorry the make dependencies aren't working for gridpak.

The other thing you need is a bathymetry file. Do you have one and what is it called? It looks like USwest has:

Code: Select all

! define as 1 for ETOPO5 bathymetry
#undef ETOPO5
! define as 1 for ETOPO2 bathymetry
#undef ETOPO2
#undef GEBCO
In other words, none of the above. It will then look for the environment variable BATHY_FILE:

Code: Select all

delta.arsc.edu 214% printenv BATHY_FILE
/archive/u1/uaf/kate/bathy/AOOSbathy.nc
For me, that file is now pointing to a regional Alaska bathymetry which wouldn't work for USwest. I don't remember what I had then.

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: problem in gridpak

#11 Unread post by mashinde »

ok,

meanwhile I keep USwest aside and trying the example of Gulf of Mexico. for this example there grid_gom.nc file is present .
now how can I run bathtub ?

thanks

regards

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem in gridpak

#12 Unread post by kate »

This one uses ETOPO5. Did you download the etopo5.nc file? Point to it with the ETOPO5 environment variable:

Code: Select all

delta.arsc.edu 164% printenv ETOPO5
/archive/u1/uaf/kate/bathy/etopo5.nc
As you can see, I'm using something in the cshell family of shells. Bash has other syntax.

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: problem in gridpak

#13 Unread post by mashinde »

Yes I downlaoded the etopo5.nc file.

I set env variable as

export etopo5=/data/rmed16_etp1_input/gridpak/etopo5.nc
then I run ./bathtub etopo5
but it gives me error ...

minimum depth (negative is land elevation)
10
maximum depth
4000
apply mask? (T/F)
T

EXTRACT - cannot find variable: topo_lon

EXTRACT - cannot find variable: topo_lat
im 4320 2161 0.0000000000000000

EXTRACT - cannot find variable: topo
Maximum depth read is 0.0000000000000000
Minimum depth read is 0.0000000000000000
latitude range of grid 9.96920996838686905E+036 9.96920996838686905E+036
latitude range of data 0.0000000 0.0000000
longitute range of grid 9.96920996838686905E+036 9.96920996838686905E+036
longitute range of data 0.0000000 180.00000
Insufficient latitude range of data
try again ...

(2) ./tolat also gives following error
error opening file in drawcoast


any hint/suggestion please ?


thanks

regards

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem in gridpak

#14 Unread post by kate »

Environment variables are case sensitive. Try:

Code: Select all

export ETOPO5=/data/rmed16_etp1_input/gridpak/etopo5.nc
You also need the coastline file and another environment variable:

Code: Select all

export XCOASTDATA=/archive/u1/uaf/kate/coasts/world_int.cst

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: problem in gridpak

#15 Unread post by mashinde »

Hi kate,

it works fine... I successfully created GoM nc file with ETOPO5 which is a regular grid, but i don't understand some points, they are as follows
(1) when i run command

/bathtub ETOPO5
minimum depth (negative is land elevation)
10
maximum depth
8000
apply mask? (T/F)
T
im 4320 2161 0.0000000000000000
Maximum depth read is 10741.000000000000
Minimum depth read is -7833.0000000000000
latitude range of grid 8.7360754013061523 30.230958938598633
latitude range of data -90.000000 90.000000
longitute range of grid 261.73245239257813 300.26753997802734
longitute range of data 0.0000000 359.91669
There are 2 bathymetries.
Which level would you like to write to?
2
There were depths less than 10
These were set to 10
There were depths greater than 8000
These were set to 8000
There are 2 bathymetries.
Which level would you like to write to?
2

then is created grid_gom.nc file having hraw and h, but h is empty and it shows 2 bathymetries. so my questions are
what should i put for with -/+ sign ...
minimum depth (negative is land elevation) = ?
maximum depth = ?
and what is mean by 2 bathymetries and which level i have to select at each time. I also tried to smooth it , but still h is empty.

I also attach here grid_gom.nc file.

can you tell me how can i fix it ? after this exercise i have to try example for curvilinear grid with USwest examples.


thanks

regards
Attachments
grid_gom.nc
(725.1 KiB) Downloaded 333 times

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem in gridpak

#16 Unread post by kate »

bathtub writes into the hraw variable, which contains the unlimited dimension. You can have as many working bathymetries as you like. You then need to run the sphere program which copies one hraw slice into h. I usually have hraw:

1. unclipped bathy
2. clipped bathy
3. smoothed by bathsuds bathy
4. then smoothed by bathsoap bathy

Because the smoothings don't smooth into the land mask, you probably want to edit the mask first. The matlab editmask used to work, but now requires some coastline in the netcdf file for which I've never been given the specifics. Instead, I use the pyroms mask editing now.

francis
Posts: 21
Joined: Wed Jun 13, 2007 1:22 pm
Location: Indian National Center for Ocean Information Servi

Re: problem in gridpak

#17 Unread post by francis »

Hi Kate
Do you have a tutorial/documentation for the gridpak software?
thanks
Francis

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: problem in gridpak

#18 Unread post by mashinde »

hi kate,

It's works fine now. I successfully created bathymetry for gom example. I use editmask for handling land/sea mask, which i always use.
Now creating spherical grid using Gridpak is done for GoM test area.

Now I am trying to create curvilinear grid for USwest example. This is quite difficult. !

Thanks

regards

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: problem in gridpak

#19 Unread post by mashinde »

Hi kate,

I am sorry , i can't make it with curvilinear grid for USwest example.
can you please give steps how to proceed in ascending order ?


thanks

regards

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem in gridpak

#20 Unread post by kate »

Sorry, I'm not in the office today. There's some documentation here. I could create a pdf of it if there's demand. Maybe even update it...

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: problem in gridpak

#21 Unread post by mashinde »

Hi kate,

I am following the USwest example for creating curvilinear grid with grid refinement. I want to learn that skill and apply in the Mediterranean sea, especially at the Gibraltar strait. But I am getting errors. I already copied files from USwest directory to Include. Now I am getting following message.

./grid < grid.in
rectangularity error in mapped contour at iteration 1 is 3.7948E-02
rectangularity error in mapped contour at iteration 2 is 3.4539E-03
rectangularity error in mapped contour at iteration 3 is 7.6947E-04
rectangularity error in mapped contour at iteration 4 is 3.1982E-04
rectangularity error in mapped contour at iteration 5 is 1.2833E-04
rectangularity error in mapped contour at iteration 6 is 5.0104E-05
rectangularity error in mapped contour at iteration 7 is 1.9495E-05
rectangularity error in mapped contour at iteration 8 is 7.5805E-06
area 0.1160E+13

Activated C-preprocessing Options:

DCOMPLEX Double complex
DBLEPREC Double precision
ELLIPSOID Distances computed with ellipsoidal terms
ETOPO5 ETOPO5 bathymetry
DRAW_COASTS Draw the coastlines on some plots
PLOTS Write out NCAR graphics plots
minimum dx = 5712.0942
minimum dy = 12809.971


can you tell me how to fix it ?

thanks

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem in gridpak

#22 Unread post by kate »

Those aren't errors. It should have created a netcdf file which you can view with ncview. It should also have created a gmeta file which you can view with idt.

Post Reply