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
ROMS mex compiles .f files (within rnt toolbox)
-
- Posts: 3
- Joined: Wed Mar 16, 2011 12:55 am
- Location: FSU-COAPS
Re: ROMS mex compiles .f files (within rnt toolbox)
Hi,
I wonder if you resolved this problem.
I have the same issue now...
Thank you.
Hajoon
I wonder if you resolved this problem.
I have the same issue now...
Thank you.
Hajoon
-
- Posts: 3
- Joined: Wed Mar 16, 2011 12:55 am
- Location: FSU-COAPS
Re: ROMS mex compiles .f files (within rnt toolbox)
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.
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.
Re: ROMS mex compiles .f files (within rnt toolbox)
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
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