0% found this document useful (0 votes)
60 views

Building MELCOR On The PC Using Compaq Visual Fortran: Presented by MELCOR Project Staff Bethesda, MD

The document discusses how to build MELCOR on a PC using Compaq Visual Fortran by running the MELCOR_Installer utility. The utility prepares the generic source code, splits it into individual files, places the files into package folders, builds package object libraries, and builds executable images of MELCOR and MELGEN. The installer guides the user through a 5 step process to install MELCOR, creating package directories with source code and object libraries. Compaq Visual Fortran can then be used to create a development environment and debug MELCOR executions graphically.

Uploaded by

well Max
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Building MELCOR On The PC Using Compaq Visual Fortran: Presented by MELCOR Project Staff Bethesda, MD

The document discusses how to build MELCOR on a PC using Compaq Visual Fortran by running the MELCOR_Installer utility. The utility prepares the generic source code, splits it into individual files, places the files into package folders, builds package object libraries, and builds executable images of MELCOR and MELGEN. The installer guides the user through a 5 step process to install MELCOR, creating package directories with source code and object libraries. Compaq Visual Fortran can then be used to create a development environment and debug MELCOR executions graphically.

Uploaded by

well Max
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

Building MELCOR on the PC Using

Compaq Visual Fortran

Three Mile Island

Presented by
MELCOR Project Staff

Bethesda, MD

May 10-15, 2001

6415•05/03/2001; Page 1
Why Build MELCOR ?

• The Capability of Building your own


MELCOR executable enables you to…
– Write custom subroutines for MELCOR
» Output routines
» Electrical heater routine for CORA
– Install service patches
– Debug “broken” or “ailing” MELCOR executions
– Change or experiment with optimization
– Develop physics models for MELCOR

6415•05/03/2001; Page 2
Revised MELCOR Installation

• New Installation with Release of Version 1.8.5


– Both for PC and UNIX
• New installation is much simplified
• Generic source code distributed as “X-Files”
– Eg. CORRTN.XXX is the concatenated collection of FORTRAN
source code for the COR package
• MELCOR_Installer (PC)
– prepares source code for compilation by inserting platform-
dependent code
– “splits” concatenated source into individual “.f” files
– Places “.f” source code into “package” folders
– Builds package object libraries
– Builds executable images of MELCOR and MELGEN

6415•05/03/2001; Page 3
Building MELCOR Development
Environment on the PC

• Use MELCOR_Install
– to prepare PC Fortran source code
– Compile source code
– Prepare package object libraries
• Use Compaq Visual Fortran
– To create development environment
– Create MELCOR and MELGEN “Projects”
– Create MELCOR and MELGEN executables, and
– Debug running code in graphical environment
• Following demonstration works
– Feel free to experiment

6415•05/03/2001; Page 4
Building MELCOR on PC Requires
Compaq Visual Fortran

• Presently, building MELCOR on the PC


running Windows (Win95/98/NT4/2000)
requires installing Compaq Visual Fortran
– Works with Digital Visual Fortran version 5.0d and above
– Recommend using Compaq/Digital Visual Fortran version
6 or higher
• When installing Fortran, allow setup to modify
your startup environment to automatically
recognize compiler commands
• Problems exist with Windows ME – will be
fixed soon by Compaq

6415•05/03/2001; Page 5
MELCOR Distribution CD
PC Directory

• HISPLT graphing package


for MELCOR
• MelcorInstallPackage
contains the MELCOR
installation utility:
MELCOR_Install
• QZ_X-Files contains source
code
• Testdemo sample problem
• Xymel – an “under-
development” Windows
version of HISPLT
• Installation Instructions

6415•05/03/2001; Page 6
MELCOR Distribution CD

• MELCOR CD directories
– docs - contains MELCOR
Reference Manuals and
Users’ Guide in Adobe
Acrobat “pdf”
– pc - contains source code,
utilities and executables for
PC (Win95/NT/2000)
– Unix – contains Unix source
and utilities

6415•05/03/2001; Page 7
Installing the MELCOR_Install Utility

• You must first “install” the


MELCOR_Install utility to
build MELCOR on the PC
• Double click setup.exe found
in the MelcorInstallPackage
folder on the distribution CD
• Follow setup instructions
– Setup will copy various files to
your system
– Keep any files on your system that
are newer than files being copied
– You might have to restart
computer once and repeat
previous steps
– Completing setup installs the
MELCOR_Install utility to your
“Start” menu

6415•05/03/2001; Page 8
Preparing to Build MELCOR

• Before running the MELCOR_Installer


– Read instructions provided with distribution
– Contemplate directory structure to be used
» You will likely live with it for a while
• Create your MELCOR directory, for example..

6415•05/03/2001; Page 9
Copy “X-Files” from CD to Your
Development Space

• xxx-files contain
generic code

• Platform-specific
code has extension
revealing platform

• Database.dim can be
modified to enlarge
maximum problem
size

• You are now ready to


“Install” MELCOR

6415•05/03/2001; Page 10
Run MELCOR_Install

• Click on image to see more plants !


• Click on start to get on with business
6415•05/03/2001; Page 11
Install MELCOR in Five Steps

• Sequentially “step”
through installation
• Steps 1 through 4
create package
directories with
source code and
object libraries
– Stop here to use Visual
Fortran graphical
development and
debugging
environment
• Step 5 creates stand-
alone executables

6415•05/03/2001; Page 12
• Step 1 – navigate
to the location of
the “X-Files”
• You will see
them in the
window on the
right of the
navigation
window
• Click OK

6415•05/03/2001; Page 13
6415•05/03/2001; Page 14
6415•05/03/2001; Page 15
6415•05/03/2001; Page 16
6415•05/03/2001; Page 17
6415•05/03/2001; Page 18
6415•05/03/2001; Page 19
6415•05/03/2001; Page 20
6415•05/03/2001; Page 21
6415•05/03/2001; Page 22
6415•05/03/2001; Page 23
6415•05/03/2001; Page 24
6415•05/03/2001; Page 25
6415•05/03/2001; Page 26
6415•05/03/2001; Page 27
6415•05/03/2001; Page 28
bh.lib bur.lib cav.lib cf.lib cor.lib crn.lib cvh.lib dch.lib edf.lib eos.lib esf.lib ……
….. exec.lib fdi.lib fl.lib hs.lib mp.lib prog.lib rn1.lib rn2.lib spr.lib tf.lib tp.lib util.lib

6415•05/03/2001; Page 29
6415•05/03/2001; Page 30
6415•05/03/2001; Page 31
6415•05/03/2001; Page 32
6415•05/03/2001; Page 33
6415•05/03/2001; Page 34
End of MELCOR Installation,
General Input Description

Susquehanna

6415•05/03/2001; Page 35

You might also like