# VECFEM3 Reference Manual: vemcompile

Type: command

## NAME

vemcompile - compiles a VECFEM FORTRAN program

## SYNOPSIS

vemcompile <workpiece> [<target_file>]

## PURPOSE

vemcompile compiles the FORTRAN program <workpiece>.f, which calls subroutines of the VECFEM (e.g. generated by vembuild or xvem). The default output file is the executable a.out, which can be started via vemrun. The optional parameter <target_file> specifies the name of the executable program. If <target_file> is not specified, the executable gets the name 'a.out'. In the vemcompile has to be called from the ksh shell.

## EXAMPLES

By entering

       ~> vemcompile pde

into the shell pde.f is compiled and it is produced a.out.

## VARIABLES

The following variables are set by the executable script 'vempfade', which has be located in the path of executables (see PATH-variable). The following six variables has to be set by vempfade:

$VECFEM_ROOT | path of the VECFEM root.
$VECFEM_ALGABRA | name of the used algebra program package used maple axiom (under construction) maxima
$VECFEM_ARCH | used computer architecture HP-UX AIX AIXSP (IBM RS6000 SP) CRAYJ90 CRAYC90 CRAYT3D Paragon SOLARIS NECSX DECALPHA IRIX5 IRIX6N32 IRIX6N64 VPP300 VPP300_MPI The list may not be completed.
$VEMRUN_OPTIONS | options to start the program
$VECFEM_SHELL | used shell to execute command from (e.g ksh)
$VECFEM_AWK | used awk program: Awk gawk nawk (for SOLARIS)

## FILES

<workpiece>.f | FORTRAN program
a.out | generated executable
<target_file> | generated executable
$VECFEM_ROOT/include/$VECFEM_ARCH/*.h | include files
$VECFEM_ROOT/$VECFEM_ARCH/libVECFEM3.a | the VECFEM library

## REMARK

In fact vemcompile executes the command

       ~> f77 -I $(VECFEM_ROOT)\include\$(VECFEM_ARCH) -L $(VECFEM_ROOT)\$(VECFEM_ARCH) -I $(VECFEM_ROOT)\$(VECFEM_ARCH) -lVECFEM3 pde.f

to compile pde.f .

## SEE

VECFEM, xvem, vembuild, vemrun, vemhint

## COPYRIGHTS

Program by L. Grosz, 1994-1996 Copyrights by Universitaet Karlsruhe 1989-1996. Copyrights by Lutz Grosz 1996. All rights reserved. More details see VECFEM..

By L. Grosz, Auckland, 31 May, 2000.