Docs:  Installation: Win95/98/NT

We currently distribute PETSc libraries to work in uniprocessor mode, under Windows NT/95/98 using Microsoft Visual C++ 6.0 compilers.

See http://www.mcs.anl.gov/petsc/petsc-patches.html and troubleshooting.html for help with problems.

Installing PETSc:

Running Examples from a Shell:

Running Examples from Microsoft Visual Studio: (using a Project)

Two project files, one for C libraries, and the other for the C++ libraries, are provided with the PETSc distribution.They are located in c:\petsc-2.0.28\projects\[c,c++]\sles\ex2 directory. To build and run the example file using the project provided:

To create a project for your files:

Program Arguments: can be set in Developer Studio from the Menu Project -> settings ->Debug -> program arguments.

Currently we only provide project examples using console applications; developing a windows application requires creating a new project.

Fortran Users:

If you have the Digitial Visual Fortran compiler (with the latest patches), you can compile PETSc Fortran code

Running Fortran examples from Developer Studio:

Currently this is not possible, as we need to use the build targes provided in the PETSc base files.

Rebuilding Libraries

The Windows version of PETSc comes with the C and C++ version libraries pre-built. If, for some reason you need to rebuild the libraries, you can do the following:

Using Microsoft Visual C/C++ Compiler from the Command Line:

If the commands nmake and vc do not work from the DOS command line, but you do have Microsoft Developer Studio installed, you can either

Complex version of PETSc libraries

To use the complex version of PETSc libraries, you need Digital Visual Fortran compiler along with Microsoft's Visual C++ compiler. Before you can compile the C example files, edit the file bmake/win32/base and chnage the varaible CXX_CLINKER to use the fortran compiler instead of the C++ compiler.

Using MPI on Windows NT/95/98

The default PETSc libraries, that come with the distibution work in uniprocessor mode only. You can use PETSc with either of the following implementations of MPI

To install PETSc with MPI, you would have to do the following:

Installing PETSc Using gcc/g77:

PETSc can be installed on Windows NT/95 using gnu-win32  tools from  Cygnus Solutions, (which contains bash and make) and EGCS version of gcc, g++, g77 compilers. Currently we use gnu-win32 version beta-20 and gcc 2.95.2 compilers for cygwin beta 20.1.