#! perl -w

=head1 NAME

cfdpost - Run the CFD Post

=cut

#!/bin/sh
#==============================================================================
# @(#) $Id$
#-------------------------------------------------------------------------------
##
#H Name:
##
## cfdpost
##
#H Purpose:
##
## Run the ANSYS CFD Post Processor
##
#H Synopsis:
##
## cfdpost [-gui|-line|-batch <file>]
##         [-report <option> [-outdir <dir>] [-name <name>]]
##         [-graphics ogl|mesa] [-state <statefile>] [-session <sessionfile>]
##         [-display <display>] [-multiconfig single|separate|last] [-help] [-v]
##
## []  denotes an optional argument.
## |   separates mutually exclusive arguments.
## ... following an argument indicates that it may be repeated.
## <>  denotes that substitution of a suitable value is required. All other
##     arguments are keywords, some of which have a short form.
##
#H Arguments:
##
#A -batch <file>
##     Starts CFD-Post in batch mode, with session file <file>.  The
##     session file is played, and then CFD-Post exits.
##
#A -report <option>
##     Starts CFD-Post in report generation mode.  <option> can be either a
##     state/session file, auto, minimal, or a predefined template name.
##
#A -outdir <dir>
##     directory in which to produce report
##
#A -name <name>
##     name of report
##
#A -display <display>
#A -d <display>
##     Display the graphical user interface on the X11 server <display>
##     instead of using the X11 server defined by the DISPLAY environment
##     variable.
##
#A -graphics ogl|mesa
#A -gr ogl|mesa
##     Set the graphics mode to use for the GUI to the OpenGL (hardware)
##     or MESA (software)-based version.
##
#A -gui
##     Starts CFD-Post in GUI mode.  This is the default.
##
#A -help
#A -h
##     Print this message.
##
#A -line
##     Starts CFD-Post in line mode.
##
#A -multiconfig single|separate|last
#A -m single|separate|last
##     Specifies the load option for multi-configuration files.
##
#A -results <file>
#A -res <file>
##     Loads the given results file after starting CFD-Post.
##
#A -session <file>
#A -s <file>
#A -play <file>
##     Plays the named session file after starting.
##
#A -state <file>
#A -t <file>
##     Loads the named state file after starting.
##
#A -verbose
#A -v
##     Specifying this option may result in additional output being sent to 
##     the UNIX standard output file (normally the screen).
##
#U ****************************************************************************
#U *                                                                          *
#U *     The following features are supported only within CFX and are not     *
#U *     shown by the -help option when the command is run elsewhere.         *
#U *                                                                          *
#U ****************************************************************************
#U
#U -local
#U     Rather than using the central version of CFD-Post, assume that
#U     the current directory is the root of a locally-built version
#U     and run from that.
#U
#U -local-root <dir>
#U     Rather than using the central version of CFD-Post, assume that
#U     the specified directory <dir> is the root of a locally-built
#U     version and run from that.
#U
#U -post
#U     Temporary switch to run CFD-Post rather than CFX-Pre.
#U
#U -run-with <cmd>
#U     Rather than running directly, uses <cmd> as a wrapper to invoke it.
#U
#U -wid <id>
#U     Sets the window ID in which to embed the CFX-Pre window
#U
#U -control-port <id>
#U     Sets the port number to which CFD-Post will communicate (i.e. WB)
#U
#U -nogui
#U     Specifies whether to run the app with the GUI or without - usually
#U     used when running under WB.

use strict;

my $path = $0;
my $post = "cfx5post.pl";
(my $postpath = $path) =~ s/cfdpost.pl$/$post/i;
require $postpath;

