Back to home page

MITgcm

 
 

    


Warning, /pkg/mnc/build_netcdf_stubs is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
79a40b9044 Ed H*0001 #! /usr/bin/env bash
                0002 #
                0003 #
                0004 
                0005 cat mnc_netcdf_stubs.h
                0006 
                0007 FCTS="DOUBLE-double REAL-float INT-int"
                0008 
                0009 PREF_SUFF=`cat mnc_netcdf_stubs.h | grep '^#define' | grep 'SUFF )' | sed -e 's|(| |g' | awk '{print $2}'`
                0010 
                0011 for mac in $PREF_SUFF ; do
                0012     for ip in " " "_" "__" ; do
                0013         for is in " " "_" "__" ; do
                0014             echo $mac" ( "$ip", "$is" )"
                0015         done
                0016     done
                0017 done
                0018 
                0019 PREF_SUFF_FC=`cat mnc_netcdf_stubs.h | grep '^#define' | grep 'CTYPE )' | sed -e 's|(| |g' | awk '{print $2}'`
                0020 
                0021 for mac in $PREF_SUFF_FC ; do
                0022     for t in $FCTS ; do
                0023         ft=`echo $t | sed -e 's|-| |g' | sed -e 's|(| |g' | awk '{print $1}'`
                0024         ct=`echo $t | sed -e 's|-| |g' | sed -e 's|(| |g' | awk '{print $2}'`
                0025         for ip in " " "_" "__" ; do
                0026             for is in " " "_" "__" ; do
                0027                 echo $mac" ( "$ip", "$is", "$ft", "$ct" )"
                0028             done
                0029         done
                0030     done
                0031 done