ROMS mex compiles .f files (within rnt toolbox)

Discussion about coupled ecosystem models

Moderators: arango, robertson

Post Reply
Message
Author
jackyzheng
Posts: 3
Joined: Wed Mar 16, 2011 12:55 am
Location: FSU-COAPS

ROMS mex compiles .f files (within rnt toolbox)

#1 Post by jackyzheng » Mon Apr 18, 2011 9:20 pm

Hi everyone,

I think I have successfully configured and compiled mex-functions on my mac. I used gforgran compiler and netcdf library (x86_64) to compile mex.

I have to create some object files that are like *.mexmaci64 for my Mac, instead of *.mexa64. For exmaple, I type on the matlab prompt:
mex rnt_hindicesTRI_mex.f

and get the messages below:

rnt_hindicesTRI_mex.f:71.25:

call hindices(%val(Ipos),%val(Jpos),%val(Xpos),%val(Ypos),
1
Error: Kind of by-value argument at (1) is larger than default kind

mex: compile of ' "rnt_hindicesTRI_mex.f"' failed.

??? Error using ==> mex at 208
Unable to complete successfully.

I try to compile some other *.f file, and got the similar error messages:Error: Kind of by-value argument at (1) is larger than default kind.

I guess this is a systematic error but need your help. By the way, my matlab is R2010b SP1.

Thanks in advance!

Yangxing

hjsong
Posts: 32
Joined: Wed Sep 27, 2006 7:23 pm
Location: University of California, Santa Cruz

Re: ROMS mex compiles .f files (within rnt toolbox)

#2 Post by hjsong » Thu Aug 11, 2011 10:44 pm

Hi,

I wonder if you resolved this problem.
I have the same issue now...

Thank you.
Hajoon

jackyzheng
Posts: 3
Joined: Wed Mar 16, 2011 12:55 am
Location: FSU-COAPS

Re: ROMS mex compiles .f files (within rnt toolbox)

#3 Post by jackyzheng » Fri Aug 12, 2011 12:14 am

Hi,

It appears that the old version of matlab compatible with rnt toolbox. New version matlab always has a problem with that. I gave up following this line but maybe you can get help from the developer of rnt toolbox Manu. You can contact him via manu.ocean@me.com.

Good luck.

hjsong
Posts: 32
Joined: Wed Sep 27, 2006 7:23 pm
Location: University of California, Santa Cruz

Re: ROMS mex compiles .f files (within rnt toolbox)

#4 Post by hjsong » Sun Aug 14, 2011 5:14 am

Thanks! I will try it again with old Matlab version.

I used to use mex files, but after immigrating to a new system, they do not work well.
And I recall that the old system had older Matlab version.

Best,
Hajoon

Post Reply