Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/astroumd/miriad
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Aug 16, 2024
2 parents 24f221a + 32f6b78 commit d5bc851
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 21 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# reminder Makefile for MIRIAD


TIME = /usr/bin/time

## help: This Help for given HOST
help : Makefile
@echo "HOST: `hostname`"
@sed -n 's/^##//p' $<

## bench: standard quick benchmark
bench:
(cd install; $(TIME) ./mir.bench)

## start: make new miriad_start files for this location
start:
./install/make_miriad_starts
@echo ""
@echo "You can now 'source miriad_start.sh' (the appropriate) start file to add MIRIAD to your shell"
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.1
6.0.2
10 changes: 10 additions & 0 deletions VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,13 @@ ATNF miriad: http://www.atnf.csiro.au/computing/software/miriad/
5.x Never released - the MIR5 branch was meant to merge the ATNF and CARMA versions

6.0.0 29may20 Moved the repo from CVS to GIT, finally.


Branches:
---------
MIR3 - deprecated
MIR4 - deprecated
MIR5 - deprecated
memallox - expanded 64 bit memory allocation?
rpfits225 - attempt to use the new RPFITS, only used by ATNF routines
wcslib -
2 changes: 1 addition & 1 deletion borrow/pgplot/sys_darwin/gfortran_gcc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
# (NB. makemake prepends -c to $FFLAGC where needed)
# -u now seems to cause havoc on mac

FFLAGC="-Wall -fPIC -O"
FFLAGC="-Wall -fPIC -O -std=legacy"

# Mandatory.
# The FORTRAN compiler flags to use when compiling fortran demo programs.
Expand Down
2 changes: 1 addition & 1 deletion borrow/pgplot/sys_linux/gfortran_gcc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# The FORTRAN compiler flags to use when compiling the pgplot library.
# (NB. makemake prepends -c to $FFLAGC where needed)

FFLAGC="-u -Wall -fPIC -O"
FFLAGC="-u -Wall -fPIC -O -std=legacy"

# Mandatory.
# The FORTRAN compiler flags to use when compiling fortran demo programs.
Expand Down
32 changes: 21 additions & 11 deletions docs/install_miriad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# new V6.0+ install
#

echo "install_miriad.sh: Version 1.0 -- 29-may-2020"
echo "install_miriad.sh: Version 1.0 -- 28-jan-2023"

opt=1
miriad=miriad
Expand Down Expand Up @@ -49,16 +49,26 @@ fi

date0=$(date)

rm -rf $miriad
git clone $url $miriad
cd $miriad
git checkout $branch


# default use the GNU compiler
export F77=gfortran
export CC=gcc
export CXX=g++
if [ $miriad == "." ]; then
if [ -d .git ]; then
git pull
else
echo Not a miriad with git?
exit 0
fi
else
rm -rf $miriad
git clone $url $miriad
cd $miriad
git checkout $branch
fi

# default use the GNU compiler
# @todo some tools don't listen to this yet
export F77=${F77:-gfortran}
export FC=${FC:-gfortran}
export CC=${CC:-gcc}
export CXX=${CXX:-g++}

# if (-e $rootdir/src/tools/ercmd.c) rm $rootdir/src/tools/ercmd.c
time install/install.miriad gfortran=1 generic=1 gif=1 telescope=carma
Expand Down
4 changes: 2 additions & 2 deletions install/compile.generic.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ endif
# DSO linking might need this patch for AS_NEEDED, X11 is the usual offender for libpgplot.so
set X11=($need[1] -lX11 $need[2])
setenv Fcompile "@F77@"
setenv Foptions "-O $slib_flags"
setenv FoptionsN "$slib_flags"
setenv Foptions "-O -std=legacy $slib_flags"
setenv FoptionsN "-std=legacy $slib_flags"
setenv Flinkdir "-L`echo $mmir/lib/$mhost $MIRXLIB | sed 's/ / -L/g'`"
setenv Flinklib "$lfs -lmir -llinpack -lpgplot $wcslib $X11 -lm"
setenv Finclude "-I`echo $mmir/src/inc $MIRXINC | sed 's/ / -I/g'`"
Expand Down
2 changes: 0 additions & 2 deletions install/make_miriad_starts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ set sname=`uname -s`

if ($sname == Linux) then
echo MIRIAD installed on a Linux system
if (! -e /usr/bin/cvs) echo "Warning: cvs not present."
if (! -e /usr/bin/make) echo "Warning: make not present."
if (! -e /usr/bin/gfortran) echo "Warning: gfortran not present."
else if ($sname == Darwin) then
echo MIRIAD installed on a mac. Hold your breath...
# check if Xcode installed
if (! -e /usr/bin/cvs) echo "Warning: cvs not present, did you not install Xcode?"
if (! -e /usr/bin/make) echo "Warning: make not present, did you not install Xcode?"
# check if HPC compiler installed
if (! -e /usr/local/bin/gfortran) then
Expand Down
5 changes: 4 additions & 1 deletion src/subs/sma_mirRead.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@
#endif

#include <math.h>
#include <rpc/rpc.h>
//#include <rpc/rpc.h> // in recent glibc header this was moved. Both redhat and ubuntu now have issues finding it
// which might be solved with the lib(n)tirpc-dev(el) - seems like a messy "upgrade" to me.
// use an extra -I/usr/include/tirpc if you need this feature
// it seems this code doesn't use RPC
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions src/sys/bin/compile.linux_gfortran
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ else
set gold=""
endif
setenv Fcompile "gfortran"
setenv Foptions "$gold -O -fPIC"
setenv FoptionsN "$gold -fPIC"
setenv Foptions "$gold -O -fPIC -std=legacy"
setenv FoptionsN "$gold -fPIC -std=legacy"
setenv Flinkdir "-L`echo $mmir/lib/$mhost $MIRXLIB | sed 's/ / -L/g'`"
setenv Flinklib "$lfs -lmir -llinpack -lpgplot $wcslib -lX11 -lm"
setenv Finclude "-I`echo $mmir/src/inc $MIRXINC | sed 's/ / -I/g'`"
Expand Down

0 comments on commit d5bc851

Please sign in to comment.