IBM Release 1.93 manual Which means that the host’s predefined hostname is not used, Macdef

Page 16

 

/* <optional_comment>

 

<IP> <name> <port> <CPUs> <speed> <RAM MB> <Arch> <OS>

 

e.g. for a Thinkpad T23 laptop,

 

/* Kukla--1.13 GHz PIII

 

127.0.0.1 localhost 1066 1 1.0 768 X86 OS/2 4.5

 

The port number is used for FIDO supervisory control, i.e. if this

 

host is supervising N other hosts, those N connect to the supervisor

 

using this port number. This port can be anything that doesn’t

 

conflict with another service on the same cluster, but the unofficial

 

"well-known" port for POEMS is 1066. All hosts can use the same

 

port number.

 

NB: Hosts are identified by their hostname (as specified by the

 

$HOSTNAME environment variable, rather than by IP address. This

 

makes it possible to test cluster simulations on a single host by adding

 

multiple names for the same host in the hostfile, and specifying different

 

aliases in different SUBDOMAIN statements in the parameters file.

 

Cluster script fidossl sets the HOSTNAME variable for each fido instance,

 

which means that the host’s predefined hostname is not used.

MACDEF

Define a user macro. Macros are parametrized groups of POEMS

 

statements, as opposed to functions, which compute numeric values.

 

Macros are defined and expanded much like C preprocessor macros,

 

except for the MACDEF and MACRO keywords. A macro

 

definition must consist of a single logical line (i.e. if it spans more

 

than one line in the source file, line continuation characters must be

 

used to concatenate them into one logical line). Semicolons must be

 

used to separate individual POEMS statements within the logical line.

 

Both numeric and string values can be passed as macro parameters.

 

Macros do not have local variables other than their pass parameters-

 

-other symbolic names will have their normal meaning from the

 

local context at the time of macro expansion. Macro parameter

 

names are dummy variables and will not collide with variables of

 

the same name in the local context--context variables with the same

 

name as the dummy will be inaccessible.

 

Macros are allowed to contain macros, i.e. the MACRO statement is

 

permitted inside a MACDEF. (This is a powerful and dangerous

 

feature.) Macro recursion is not supported. NB: Since POEMS

 

comments always extend to the end of the current line, any

 

comments inside a macro definition must be at the end of a lexical

 

line, following the line continuation character, as shown below.

 

Syntax: MACDEF name(arg1, ..., argN) <logical line of code>

 

Example: This macro plots field files over a fixed volume, with a

12

Image 16
Contents IBM T. J. Watson Research Center Yorktown Heights, NY Page IBM T. J. Watson Research Center Yorktown Heights, NY Using Poems HOW Poems WorksChapter Introduction MotivationPhilosophy Structure OptimizationPage Poems system organization Front-End Script poems.cmd Program OrganizationScript Operation Fdtd Engine FIDO/TEMPEST Postprocessor EmpostVisualization System VIS5D Cluster ControlParallel Processing Poems Command-Line Options Command ReferenceGlobal Group Freq LambdaFunction HostsWhich means that the host’s predefined hostname is not used MacdefMacro PrintSET RandomseedSimulator World Group TitleVerbose BoundaryMaterial Group BasicstepXrange Yrange DefineParameters epsReal epsImag muReal muImag Block Object GroupFAN Hollowbox GratingTiledplane 3DCURVE CurveCylinder Source Group Command Group Output GroupPostprocess Group FieldCAD WebpageFlux FarfieldIntegral List ModematchMovie MOVIE3DDissipation SliceVariables Optimize GroupGuess Store LimitPenalty Merit Parameters Schedule GroupRange Computational Domain SymmetryObjects Perfectly-Matched Layers MaterialsPlane Waves Page Beam Sources Optimization Merit FunctionsPhase uniformity across a plane Worked Example Optimizing a V Antenna 10 Optimized V antenna refractivePage Worked Example Glass Ridge Waveguide to Free Space Coupler Worked Example Doped Silica Waveguide ModePredefined Constants Reserved Names ConfinePredefined Mathematical Functions Arithmetic OperatorsLogical Operators ABSAcos AcoshATAN2 CeilCOS ElintkIntegral 20. LNMAX MINRandom ROOT1DRound SignMaterial Parameter Functions Analytical Pupil FunctionsFlattop Startup and Steady State Tempest and General Fdtd InformationTime step Page Appendix A. V-Antenna Optimization Run Poems Input DIPOLE2I.PAR END Material END World Subdomain ALL END ObjectEND Source END CommandEND Output END Optimize Phaseex END Postprocess AmplexPage Page Page END Tempest Input File DIPOLE2I.PAR.IN Written by Phil Hobbs Pages of pointsource statements omitted Postprocessor orders DIPOLE2I.ORDERS ALLDIPOLE2IEXI DIPOLE2IEXQDIPOLE2IEYI DIPOLE2IEYQDIPOLE2IEZI DIPOLE2IEZQMiddleflux POSTPROC.1.NAMEArray Amplex POSTPROC.1.PARMSTRINGDIPOLE2IPHASEEX ArrayPOSTPROC.2.PARMSTRING FF2DIPOLE2IPX POSTPROC.6.NAMEArray Poyntingz DIPOLE2IPZPOSTPROC.9.PARMSTRING POSTPROC.10.PARMSTRINGPOSTPROC.11.NAME Slice IndexnSlice Poyntingz POSTPROC.13.COMPARISONDOMAINDIPOLE2IPZXY0.BMP POSTPROC.14.NAMEPOSTPROC.16.COMPARISONDOMAIN DIPOLE2IPXZX0.BMPPOSTPROC.17.NAME Slice AmplexDIPOLE2IPHASEEXXY0.BMP DIPOLE2IPHASEEXZX0.BMPPOSTPROC.20.COMPARISONDOMAIN DIPOLE2IDISSZX0.BMPPOSTPROC.24.COMPARISONDOMAIN DIPOLE2IEXQZX0.BMPRun Results DIPOLE2I.SIMPLEX Page Page Page Page Page Fdtd and Tempest Tempest patchesAdvice common to all or most Fdtd programs Tempest limitationsWindow System Configuration Sample X11 ConfigurationRelease Notes Running Vis5DWish list Beta Release Limitations Page Page Emdenormal Emunderflow IndexMatlab Maxordersources 81 Maxpointsources