Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Tue Dec 11, 2018 4:44 am




Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Author Message
 Post subject: RNT compile rnt_oa2d_mex
PostPosted: Sun Feb 12, 2017 3:25 pm 
Offline

Joined: Mon Jan 16, 2017 1:02 am
Posts: 11
Location: DSS
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.


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 16, 2017 2:07 pm 
Offline

Joined: Mon Jan 16, 2017 1:02 am
Posts: 11
Location: DSS
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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