08.06.2013 Views

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

Bernese GPS Software Version 5.0 - Bernese GNSS Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

21.4.1 Maximum Dimensions<br />

21.4 Programming Standards and Conventions<br />

Although the memory of a number of arrays is allocated dynamically still many dimensions<br />

are predefined in module files. Most of the main programs have the following line in the<br />

declaration part:<br />

USE m maxdim, ONLY: max...<br />

The module file ${I}/M MAXDIM.f90 (Figure 21.2) can be found in the include directory<br />

${C}/INC/FOR. Three memory models containing maximum dimensions are defined<br />

in this file (SMALL, MEDIUM, LARGE). They are distinguished by the preprocessor commands<br />

#ifdef and #endif. On UNIX platforms the appropriate model is selected by yourself<br />

for your computer platform during the installation of the <strong>Bernese</strong> <strong>GPS</strong> <strong>Software</strong>.<br />

The model you are using on your platform is saved in the variable MEMSIZE in the file<br />

${X}/EXE/LOAD<strong>GPS</strong>.setvar. To increase a specific parameter (e.g., MAXSTA), you may<br />

change the corresponding entry (e.g., change MAXSTA=350 to MAXSTA=400 for memory<br />

model LARGE). For Windows platforms the MEDIUM memory model is installed by<br />

default. Three zip archives containing all executables of the Fortran programs compiled<br />

with the SMALL, MEDIUM, and LARGE, respectively, are available on the distribution CD.<br />

Simply extract the files to the %XG% directory. Adapt the memory model specified in<br />

%X%\EXE\LOAD<strong>GPS</strong>.setvar accordingly.<br />

It is recommended to recompile the entire source code by running the COMPLINK command<br />

if you have changed one of the maximum dimensions in ${I}/M MAXDIM.f90.<br />

Problems related to the change of a maximum dimension parameter may arise if the size<br />

of the computer memory is insufficient to allow for the increased program size. This might<br />

happen if “memory-critical” parameters are changed such as the parameters MAXPAR,<br />

MAXSAS, MAXFLS, MAXSNG in program <strong>GPS</strong>EST. The increased program size may also<br />

increase the program run-time considerably, if the operating system starts swapping in and<br />

out parts of the memory.<br />

21.4.2 Recompilation of Particular Programs<br />

A set of scripts is provided in the ${X}/EXE directory for the compilation and linking of<br />

programs and routines. For the names and the use of these scripts, we refer to the chapter<br />

on the installation of the <strong>Bernese</strong> <strong>GPS</strong> <strong>Software</strong> on the different platforms (see Chapter 23).<br />

<strong>Bernese</strong> <strong>GPS</strong> <strong>Software</strong> <strong>Version</strong> <strong>5.0</strong> Page 473

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!