source: trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/arch/cray_csd.sed @ 2089

Last change on this file since 2089 was 11, checked in by aslmd, 14 years ago

spiga@svn-planeto:ajoute le modele meso-echelle martien

File size: 618 bytes
Line 
1#### This sed script converts !$OMP directives to Cray !csd$ directives ####
2#
3# get rid of single quotes after comments
4# WARNING:  This will break if a quoted string is followed by a comment that has
5#           a single quote. 
6/\!.*'/s/'//g
7# Automatically add cpp __LINE__ and __FILE__ to calls to wrf_error_fatal(). 
8s/[Cc][Aa][Ll][Ll] *[Ww][Rr][Ff]_[Ee][Rr][Rr][Oo][Rr]_[Ff][Aa][Tt][Aa][Ll] *(/CALL wrf_error_fatal3 ( __FILE__ , __LINE__ , /
9# convert !$OMP directives to Cray !csd$ directives
10/\!\$[Oo][Mm][Pp]/s/\!\$[Oo][Mm][Pp]/\!csd\$/
11/\!csd\$.*[Pp][Rr][Ii][Vv][Aa][Tt][Ee]/a\
12!csd$& schedule(static,1)
Note: See TracBrowser for help on using the repository browser.