📄 readme.txt
字号:
Building SEAGRID from Source Building SEAGRID requires building 3 mex files:mexsepeli.Fmexrect.Fmexinside.cThese mex files are machine dependent, and can also be matlab version dependent.Here's how I built these files for Matlab7.1 (R14SP3) on a 32 bit Windows platformwith Digital Fortran 6.6 and LCC (the C compiler that Mathworks supplies):Start up Matlab and type>> mex -setupand have Matlab look for Compilers on your system. I choose Digital Fortran 6.6,then noted where Matlab told me it stuck the "mexopts.bat" file it created. I copied that file over to my seagrid mex directory, and renamed it "mexopts_f.bat".Because we want to compile with 64 bit precision, I added the flag /real_size:64 sothat the OPTIMFLAGS line in "mexopts_f.bat" reads:set OPTIMFLAGS=/MD -Ox -DNDEBUG /real_size:64I then did:>> mex -setup a second time, and this time chose the LCC C compiler. I copied the "mexopts.bat" file that Matlab created into my seagrid mex directoy and renamed it "mexopts_c.bat"I then typed:>> make_seagrid_mexWhich runs a script that calls mex using these mexopts_f.bat and mexopts_c.bat settings.IMPORTANT NOTE FOR LARGE GRIDS: The maximum size of the grid that MEXSEPELI canhandle is set in mexsepeli.inc. Because SEAGRID effectivelydoubles the grid for computational purposes, if you needa final grid that is 400x400, you need to set NX and NY inmexsepeli.inc to something greater than 800.Also the maximum size of the boundary that MEXRECT canhandle is set in mexrect.c. You need to increase the sizeof the Z array in the main routine, and also the size of R and Tin the RECT subroutine.---Rich Signell | rsignell@usgs.govU.S. Geological Survey | (508) 457-2229 | FAX (508) 457-2310384 Woods Hole Road | Woods Hole, MA 02543-1598 |
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -