Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Sat Jul 20, 2019 5:19 am




Post new topic Reply to topic  [ 4 posts ] 

All times are UTC

Author Message
PostPosted: Mon Apr 18, 2011 9:20 pm 
Offline

Joined: Wed Mar 16, 2011 12:55 am
Posts: 3
Location: FSU-COAPS
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


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 11, 2011 10:44 pm 
Offline

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

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

Thank you.
Hajoon


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 12, 2011 12:14 am 
Offline

Joined: Wed Mar 16, 2011 12:55 am
Posts: 3
Location: FSU-COAPS
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.


Top
 Profile  
Reply with quote  
PostPosted: Sun Aug 14, 2011 5:14 am 
Offline

Joined: Wed Sep 27, 2006 7:23 pm
Posts: 32
Location: University of California, Santa Cruz
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group