#!/bin/tcsh -f
#***************************************************************************
#
# COPYRIGHT (C) 2006, Carolina Environmental Program - UNC Chapel Hill
# All Rights Reserved
#
# See file COPYRIGHT for conditions of use.
#
# Center for Environmental Modeling for Policy Development
# Carolina Environmental Program
# University of North Carolina
# 137 E. Franklin St., CB# 6116
# Chapel Hill, NC  27599-6116
#
# smoke@unc.edu
#
# Last Updated: 9-25-06
#***************************************************************************
#
# Purpose: Configure platform settings for running and compiling SMOKE 
#
# Usage Notes: <include hardware and operating system restrictions>
#
#   Script must be executed by "source platform" to set
#   the environment variables in the parent.
#
# History of Major Revisions: (in reverse chronological order)
#
# Date: Unknown 
#   Ted Smith        Environmental Programs - MCNC
#   919 248 9232     smith_w@mcnc.org
#   creation
# Date: September 25, 2006
#   Zac Adelman      CEMPD - UNC
#   zac@unc.edu
#   updated to remove all references to EDSS
#   generalized for non-Linux O/S
#
#  %W% %P% %G% %U%

# User setting compiler abbreviation
set comp_abbrv = ifort

#  Determine operating system for compiling SMOKE
#    set os = `uname -s``uname -r | cut -d"." -f1` 
    set os = `uname -s``uname -r | cut -d"." -f1`_`uname -p`

## Set default number of bits 
#set bits = 32
setenv SMOKE_EXE $os$comp_abbrv

# Set default compiler flags for Linux; if using other O/S override by setting env variables manually

setenv FC $comp_abbrv
setenv FFLAG   "-auto -cm -132 -zero -common-args -i-static"
setenv DBGFLAG "-auto -g -debug -cm -132 -zero -common-args -i-static"

if ( $?M6_FFLAGS ) then
else
   setenv M6_FFLAGS "$FFLAG"
endif

exit( 0 )
