Build script fix for OS X with MPI

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Posts: 17
Joined: Fri Aug 14, 2009 9:30 pm
Location: University of Rhode Island

Build script fix for OS X with MPI

#1 Post by jcharris » Fri Jan 15, 2010 6:43 am

It seems worth mentioning that line 50 of the standard build script is not compatible with OS X, which does not support 'grep -P'. Perhaps this change would be useful:

# test=`echo $1 | grep -P '^\d+$'`
test=`echo $1 | egrep '^[[:digit:]]+$'`

Although I have not finished getting ROMS working with MPI, it seems this change should have the desired behavior on both OS X and other platforms.

Post Reply