RNT compile rnt_oa2d_mex

Discussion of how to use ROMS on different regional and basin scale applications.

Moderators: arango, robertson

Post Reply
Message
Author
roopakotta
Posts: 11
Joined: Mon Jan 16, 2017 1:02 am
Location: DSS

RNT compile rnt_oa2d_mex

#1 Post by roopakotta » Sun Feb 12, 2017 3:25 pm

hi,
I am trying to compile RNT toolbox by Manu. Iam using windows 32 bit matlab and g95. Following are my mex configuration in matlab.
_____________________________________________________________________________________________________________
-> Options file = C:\Users\roopa\AppData\Roaming\MathWorks\MATLAB\R2013a\mexopts.bat
MATLAB = C:\PROGRA~2\MATLAB\R2013a
-> COMPILER = g95
-> Compiler flags:
COMPFLAGS = -c -DMATLAB_MEX_FILE -fcase-upper -fno-underscoring
OPTIMFLAGS = -O3
DEBUGFLAGS = -g
arguments =
Name switch = -o
-> Pre-linking commands =
-> LINKER = C:\PROGRA~2\MATLAB\R2013a\sys\perl\win32\bin\perl.exe C:\gnumex\trunk\linkmex.pl
-> Link directives:
LINKFLAGS = -LC:\Users\roopa\AppData\Roaming\MATHWO~1\MATLAB\R2013a\gnumex
LINKDEBUGFLAGS = -g -Wl,--image-base,0x28000000\n
LINKFLAGSPOST =
Name directive = -o .mexw32
File link directive =
Lib. link directive =
Rsp file indicator =
-> Resource Compiler = C:\PROGRA~2\MATLAB\R2013a\sys\perl\win32\bin\perl.exe C:\gnumex\trunk\rccompile.pl -o mexversion.res
-> Resource Linker =
__________________________________________________________________________________________________________
I am able to successfully compile all the functions except rnt_oa2d_mex.f. I am getting the error as follows..
xs(ii)= x( pmap(i,ii) )
1
Error: Array index at (1) must be of INTEGER type

I referred the previous query in this viewtopic.php?f=1&t=1374
but cannot fix it in my system. Please help as soon as possible.

roopakotta
Posts: 11
Joined: Mon Jan 16, 2017 1:02 am
Location: DSS

Re: RNT compile rnt_oa2d_mex

#2 Post by roopakotta » Thu Feb 16, 2017 2:07 pm

I solved it mysef by converting to int
xs(ii)= x( int(pmap(i,ii)) )
do the same with next two lines in this file.

Post Reply