Skip to content

Commit 243c4a1

Browse files
committed
a few conflicts in merged files (potfft.for, imgen.for, hio.c) but else
merged clean. Code compiles clean, except for xmtv
1 parent cf71c0a commit 243c4a1

33 files changed

+3033
-2790
lines changed

MIR4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Notes on what was done to miriad for the MIR4 transition:
2+
3+

README.bima

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
Miriad is a radio-astronomy data reduction package, developed by Bob
22
Sault for BIMA, starting in 1987. Although it was originally developed
3-
to meet the needs of the BIMA consortium, an ATNF version - derived
3+
to meet the needs of the BIMA consortium; an ATNF version - derived
44
from the same code base - is also available independantly. Apart from
55
BIMA and ATNF, MIRIAD is also known to handle e.g. VLA and WSRT data.
66

77
This BIMA release of MIRIAD is under CVS control, and daily snapshots
88
are available. If you see a file 'VERSION.cvs' in the root directory,
9-
this is not an officially blessed MIRIAD release, but the daily
9+
this is not an officially blessed MIRIAD release, but the "CVS"
1010
snapshot. The VERSION file contains the official release number (3.0.0
1111
or higher in CVS)
1212

13+
Major new features in MIRIAD since the CVS based releases:
14+
- simplified automatic install on linux and solaris (V3.0.x)
15+
- better scalability for larger arrays (V3.1.x)
16+
(MAXDIM/MAXDIM2, MAXANT/MAXANT2, ...)
17+
- maximum filesize is now > 2GB (V4.0.0)
18+
(scratch files still limited to 8GB) (t.b.a)
19+
1320
To install the BIMA version of MIRIAD, there are a few options:
1421
- binary releases (astromake/linux versions now available)
1522
- follow 'install.MIR' (the classical method - not recommended)
@@ -18,9 +25,6 @@ To install the BIMA version of MIRIAD, there are a few options:
1825
- follow http://www.astro.umd.edu/~teuben/miriad/cvs.html
1926
(the recommended way if you want to keep up with changes)
2027

21-
22-
2328
Peter Teuben
2429
25-
December 2002
26-
30+
February 2003

TODO

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- integer*8 support; ratty flag to go back to the old situation if
2+
the fortran compiler does not support integer*8
3+
[this will support scratchfiles > 8GB]

VERSIONS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
3.1.0 03feb23 dual MAXDIM/MAXDIM2, MAXCHAN/MAXCHAN2 , ....
77
this was the last CVS mainbranch release of the 3.x series
88
from now on this will be a MIR3 branch for 3.1.x patches
9+
3.1.1 W.I.P.
10+
911
4.x n/a MIR4 branch in CVS (LFS able to write 2GB+ files)
12+
4.0.1 03feb23 end of MIR4 as a branch
13+
4.0.2 W.I.P. merged MIR4 into the HEAD

src/prog/analysis/imgen.for

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,13 @@ c pjt 21jan02 using MAXDIM1
149149
c pjt 25jun02 allow imsize to be 3 dimensional [for MIR4]
150150
c pjt 3dec02 using MAXDIM again, MAXDIM1 retired; MAXDIM2 is new
151151
c pjt 30jan03 merged MIR4 into current release
152+
c pjt 23feb03 officially merged MIR4
152153
c---
153154
c ToDo:
154155
c write good headers if 3D cubes written
155156
c------------------------------------------------------------------------
156157
character version*(*)
157-
parameter(version='Imgen: version 30-jan-03')
158+
parameter(version='Imgen: version 23-feb-03')
158159
include 'mirconst.h'
159160
include 'maxdim.h'
160161
include 'maxnax.h'

src/prog/analysis/potfft.for

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ c peter double prec
5858
c mousumi 8aug02 Replace with QGAUSS with QROMB
5959
c peter internal real*8, but miriad in real*4 as it should be
6060
c peter 9aug02 forgot to scale sech() with h
61+
c peter 23feb03 merged MIR4
6162
c Todo:
6263
c scaleheight should be allowed to vary
6364
c
@@ -70,7 +71,7 @@ c
7071
INTEGER INVPARM
7172
PARAMETER(INVPARM=1)
7273
CHARACTER VERSION*(*)
73-
PARAMETER (VERSION='Version 13-aug-02')
74+
PARAMETER (VERSION='Version 23-feb-03')
7475
c
7576
CHARACTER in*128,out*128,outg*128
7677
INTEGER nin(MAXNAX),nout(MAXNAX),npadin(MAXNAX)
@@ -256,7 +257,6 @@ c
256257
DO i=1,NKEYS
257258
CALL hdcopy(lin,lout,keyw(i))
258259
ENDDO
259-
c
260260
CALL xyclose(lout)
261261
ENDIF
262262
CALL xyclose(lin)

src/subs/bug.c

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,26 @@
1010
/* pjt 23sep01 darwin */
1111
/* pjt 4dec01 bypass fatal errors (for alien clients) if req'd */
1212
/* through the new bugrecover_c() routine */
13+
/* pjt 17jun02 prototypes for MIR4 */
1314
/************************************************************************/
1415

1516
#include <stdio.h>
1617
#include <stdlib.h>
18+
#include <string.h>
19+
#include "miriad.h"
1720

18-
static char *errmsg_c();
19-
void bug_c();
21+
static char *errmsg_c(int n);
2022

2123
char *Name = NULL;
2224
int reentrant=0;
2325

26+
/* HPUX cannot handle the (void) thing */
27+
2428
typedef void (*proc)(void); /* helper definition for function pointers */
2529
static proc bug_cleanup=NULL;
2630

2731
/************************************************************************/
28-
void bugrecover_c(cl)
29-
void (*cl)(void);
32+
void bugrecover_c(void (*cl)(void))
3033
/** bugrecover_c -- bypass fatal bug calls for alien clients */
3134
/*& pjt */
3235
/*: error-handling */
@@ -44,18 +47,17 @@ void (*cl)(void);
4447
4548
..
4649
bugrecover_c(my_handler);
47-
..
50+
.. */
4851
/*-- */
4952
/*----------------------------------------------------------------------*/
5053
{
5154
bug_cleanup = cl;
5255
}
5356

5457
/************************************************************************/
55-
void buglabel_c(name)
56-
char *name;
58+
void buglabel_c(Const char *name)
5759
/** buglabel -- Give the "program name" to be used as a label in messages. */
58-
/*& mjs */
60+
/*& pjt */
5961
/*: error-handling */
6062
/*+ FORTRAN call sequence:
6163
subroutine buglabel(name)
@@ -75,36 +77,9 @@ char *name;
7577
strcpy(Name,name);
7678
}
7779
/************************************************************************/
78-
void bugno_c(s,n)
79-
char s;
80-
int n;
81-
/** bugno -- Issue an error message, given a system error number. */
82-
/*& mjs */
83-
/*: error-handling */
84-
/*+ FORTRAN call sequence:
85-
subroutine bugno(severity,errno)
86-
87-
implicit none
88-
character severity*1
89-
integer errno
90-
91-
Output the error message associated with a particular error number.
92-
93-
Input:
94-
severity Error severity. Can be one of 'i', 'w', 'e' or 'f'
95-
for "informational", "warning", "error", or "fatal"
96-
errno host error number. */
97-
/*-- */
98-
/*----------------------------------------------------------------------*/
99-
{
100-
if (n == -1)bug_c(s,"End of file detected");
101-
else bug_c(s,errmsg_c(n));
102-
}
103-
/************************************************************************/
104-
void bug_c(s,m)
105-
char s,*m;
80+
void bug_c(char s,Const char *m)
10681
/** bug -- Issue an error message, given by the caller. */
107-
/*& mjs */
82+
/*& pjt */
10883
/*: error-handling */
10984
/*+ FORTRAN call sequence:
11085
subroutine bug(severity,message)
@@ -150,8 +125,31 @@ char s,*m;
150125
}
151126
}
152127
/************************************************************************/
153-
static char *errmsg_c(n)
154-
int n;
128+
void bugno_c(char s,int n)
129+
/** bugno -- Issue an error message, given a system error number. */
130+
/*& pjt */
131+
/*: error-handling */
132+
/*+ FORTRAN call sequence:
133+
subroutine bugno(severity,errno)
134+
135+
implicit none
136+
character severity*1
137+
integer errno
138+
139+
Output the error message associated with a particular error number.
140+
141+
Input:
142+
severity Error severity. Can be one of 'i', 'w', 'e' or 'f'
143+
for "informational", "warning", "error", or "fatal"
144+
errno host error number. */
145+
/*-- */
146+
/*----------------------------------------------------------------------*/
147+
{
148+
if (n == -1)bug_c(s,"End of file detected");
149+
else bug_c(s,errmsg_c(n));
150+
}
151+
/************************************************************************/
152+
static char *errmsg_c(int n)
155153
/*
156154
Return the error message associated with some error number.
157155
------------------------------------------------------------------------*/

src/subs/bugwrap.f2c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "miriad.h"
12
/************************************************************************/
23
fortran subroutine bugno(character severity,integer n)
34
{

0 commit comments

Comments
 (0)