set HERE=`pwd` source ~/.login set path= ( . $HOME/bin $path /cern/new/bin /usr/sbin ) set prompt="`hostname`> " setenv EDITOR emacs setenv TRIUMF_TERMINAL_TYPE X alias ls 'ls -CF --color' alias rm 'rm -i' source ~/e614soft/triumf/setup.com if ( ! $?TRIUMF_ROOT ) then setenv TRIUMF_ROOT /home/e614/e614soft/triumf endif if ( ! $?E614_CAL ) then setenv E614_CAL /home/e614/e614soft endif if ( ! $?TRIUMF_SCRIPTS ) then setenv TRIUMF_SCRIPTS $TRIUMF_ROOT endif if ( ! $?ROOTSYS ) then if ( -d /twist/local ) then set GCCVERSION=`/bin/sh -c 'gcc -v 2>&1 | grep version'` switch ( "$GCCVERSION" ) setenv ROOTSYS /twist/local/root breaksw endif endif if ( ! $?CERN_LIBRARY ) then setenv CERN_LIBRARY /cern/2002/lib endif if ( ! $?CERN_LIBRARY_ABSOFT ) then setenv CERN_LIBRARY_ABSOFT /twist/local/cern_absoft/2002/lib endif setenv CVS_RSH ssh if ( ! $?CVSROOT ) then setenv CVSROOT /home/e614mgr/cvs endif if ( $?ROOTSYS ) then setenv PATH ${PATH}:${ROOTSYS}/bin if ( $?LD_LIBRARY_PATH ) then setenv LD_LIBRARY_PATH ${ROOTSYS}/lib endif endif if ( ! $?GPLOT_DIR ) then setenv GPLOT_DIR ${TRIUMF_ROOT}/gplot endif if ( ! $?BRU_COMMANDS ) then setenv BRU_COMMANDS ${TRIUMF_ROOT}/bru endif if ( ! $?MOFIA_COMMANDS ) then setenv MOFIA_COMMANDS ${TRIUMF_ROOT}/mofia endif if ( ! $?GEANT_COMMANDS ) then setenv GEANT_COMMANDS ${TRIUMF_ROOT}/geant endif if ( ! $?CFM_COMMANDS ) then setenv CFM_COMMANDS ${TRIUMF_ROOT}/cfm endif if ( ! $?YBOS_COMMANDS ) then setenv YBOS_COMMANDS ${TRIUMF_ROOT}/ybos endif alias setup 'set setup_args=(!:*); eval source `echo \${!:1_COMMANDS}|tr \[a-z\] \[A-Z\]`/setup.com; unset setup_args' alias unsetup 'eval source `echo \${!:1_COMMANDS}|tr \[a-z\] \[A-Z\]`/unsetup.com' alias mlib "set mlib_args=(!:*); source ${TRIUMF_SCRIPTS}/mlib.csh; unset mlib_args" setup mofia devel source $MOFIA_COMMANDS/setup.com set nargs = $#setup_args if ( $nargs > 2 ) then if ( $nargs > 1 ) then set vers = $setup_args[2] else if ( ! -e $MOFIA_COMMANDS/${vers} ) then echo Setting up MOFIA $vers Setting up MOFIA devel setenv MOFIA_ROOT ${MOFIA_COMMANDS}/${vers} if ( $vers == "1.0" || $vers == "1.5" || $vers == "1.6" ) then setenv MOFIA_BIN ${MOFIA_ROOT}/bin setenv MOFIA_DEBUG ${MOFIA_ROOT}/debug setenv MOFIA_DOC ${MOFIA_ROOT}/help setenv MOFIA_HELP ${MOFIA_ROOT}/help setenv MOFIA_SOURCE ${MOFIA_ROOT}/source setenv MOFIA_UPDATE ${MOFIA_ROOT}/update endif if ( $?DEBUG ) then setenv MOFIA_LIBDIR ${MOFIA_ROOT}/lib endif setenv MOFIA_DUMMY ${MOFIA_SOURCE}/dummy setenv MOFIA_INCLUDE ${MOFIA_SOURCE}/include setenv MOFIA_KCM ${MOFIA_SOURCE}/kcm setenv MOFIA_MAIN ${MOFIA_SOURCE}/main setenv MOFIA_MAINF90 ${MOFIA_SOURCE}/mainf90 setenv MOFIA_MIDAS ${MOFIA_SOURCE}/midas setenv MOFIA_MODULES ${MOFIA_SOURCE}/modules setenv MOFIA_OLD ${MOFIA_SOURCE}/old setenv MOFIA_PHOTO ${MOFIA_SOURCE}/photo setenv MOFIA_QOD ${MOFIA_SOURCE}/qod setenv MOFIA_USER ${MOFIA_SOURCE}/user cat ${MOFIA_UPDATE}/note.txt -------------------------------------------------------------------------------  MOFIA devel  1999-Oct-13 Initial f90 version 2000-Mar-30 See $MOFIA_UPDATE/note1.txt for changes. 2000-Sep-05 Version 2.0.1. See $MOFIA_UPDATE/note2.txt for changes. 2001-Apr-03 Version 2.1. See $MOFIA_UPDATE/note3.txt for changes. 2002-Feb-28 Version 2.2. See $MOFIA_UPDATE/note4.txt for changes. 2002-Mar-27 Version 2.2.1 See $MOFIA_UPDATE/note5.txt for changes. 2002-Apr-03 Version 2.2.2 See $MOFIA_UPDATE/note6.txt for changes. ------------------------------------------------------------------------------- alias mnew more ${MOFIA_UPDATE}/note.txt alias mnews more ${MOFIA_UPDATE}/notes_all.txt echo Setting up packages for MOFIA $vers Setting up packages for MOFIA devel if ( $vers == "1.0" ) then new: setup cfm 2.2 source $CFM_COMMANDS/setup.com set nargs = $#setup_args if ( $nargs > 2 ) then if ( $nargs > 1 ) then set vers = $setup_args[2] else if ( ! -e $CFM_COMMANDS/${vers} ) then echo Setting up CFM $vers Setting up CFM 2.2 setenv CFM_ROOT ${CFM_COMMANDS}/${vers} setenv CAL_DB $E614_CAL/caldb_ascii setenv CFM_DB $E614_CAL/cfm/db_noswap setenv CFM_LOG $E614_CAL/cfm/log setenv CFM_DOC ${CFM_ROOT}/doc setenv CFM_LIBRARY ${CFM_ROOT}/lib setenv CFM_MAIN ${CFM_ROOT}/main setenv CFM_SOURCE ${CFM_ROOT}/source setenv CFMLOG ${CFM_LOG}/cfm.log setenv CFMREADLOCK ${CFM_DB}/cfm.readlock setenv CFMWRITELOCK ${CFM_DB}/cfm.writelock setenv CFMREC ${CFM_DB}/cfm.record alias cfm ${CFM_MAIN}/cfm.exe setup bru 1.1 source $BRU_COMMANDS/setup.com set nargs = $#setup_args if ( $nargs > 2 ) then if ( $nargs > 1 ) then set vers = $setup_args[2] else if ( ! -e $BRU_COMMANDS/${vers} ) then setenv BRU_LIBRARY $BRU_COMMANDS/${vers} setup ybos 4.1 source $YBOS_COMMANDS/setup.com set P1 ; set P2 set nargs = $#setup_args if ( $nargs < 2 ) goto no_more set P1 = $setup_args[2] if ( $P1 == "PRODUCTION" ) set P1 = "production" if ( $nargs < 3 ) goto no_more unset nargs if ( $P1 == "" ) set P1 = "production" set YBOS_Version = $P1 set Use_Root = $YBOS_COMMANDS setenv YBOS_ROOT ${Use_Root}/${YBOS_Version} setenv YBOS_DOC ${Use_Root}/${YBOS_Version}/doc setenv YBOS_LIBRARY ${Use_Root}/${YBOS_Version}/library setenv YBOS_TEST ${Use_Root}/${YBOS_Version}/test setenv YBOS_SOURCE ${Use_Root}/${YBOS_Version}/source Exit: unset YBOS_Version unset Use_Root unset P1 ; unset P2 unsetenv IO_DIR goto end if ( $?DISPLAY ) then echo " " date Tue May 6 03:17:19 PDT 2003 alias http "cd /home/e614/public_html; pwd" alias pu "rm -iv *~" alias ll "ls -al" alias rm "rm -iv" alias cp "cp -iv" alias mv "mv -iv" set prompt='%n[%B%c3%b]>' source $HERE/triumf/setup.com if ( ! $?TRIUMF_ROOT ) then if ( ! $?E614_CAL ) then if ( ! $?TRIUMF_SCRIPTS ) then if ( ! $?ROOTSYS ) then if ( ! $?CERN_LIBRARY ) then if ( ! $?CERN_LIBRARY_ABSOFT ) then setenv CVS_RSH ssh if ( ! $?CVSROOT ) then if ( $?ROOTSYS ) then setenv PATH ${PATH}:${ROOTSYS}/bin if ( $?LD_LIBRARY_PATH ) then setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${ROOTSYS}/lib else endif if ( ! $?GPLOT_DIR ) then if ( ! $?BRU_COMMANDS ) then if ( ! $?MOFIA_COMMANDS ) then if ( ! $?GEANT_COMMANDS ) then if ( ! $?CFM_COMMANDS ) then if ( ! $?YBOS_COMMANDS ) then alias setup 'set setup_args=(!:*); eval source `echo \${!:1_COMMANDS}|tr \[a-z\] \[A-Z\]`/setup.com; unset setup_args' alias unsetup 'eval source `echo \${!:1_COMMANDS}|tr \[a-z\] \[A-Z\]`/unsetup.com' alias mlib "set mlib_args=(!:*); source ${TRIUMF_SCRIPTS}/mlib.csh; unset mlib_args" setenv MOFIA_COMMANDS $HERE/triumf/mofia setup mofia devel source $MOFIA_COMMANDS/setup.com set nargs = $#setup_args if ( $nargs > 2 ) then if ( $nargs > 1 ) then set vers = $setup_args[2] else if ( ! -e $MOFIA_COMMANDS/${vers} ) then echo Setting up MOFIA $vers Setting up MOFIA devel setenv MOFIA_ROOT ${MOFIA_COMMANDS}/${vers} if ( $vers == "1.0" || $vers == "1.5" || $vers == "1.6" ) then setenv MOFIA_BIN ${MOFIA_ROOT}/bin setenv MOFIA_DEBUG ${MOFIA_ROOT}/debug setenv MOFIA_DOC ${MOFIA_ROOT}/help setenv MOFIA_HELP ${MOFIA_ROOT}/help setenv MOFIA_SOURCE ${MOFIA_ROOT}/source setenv MOFIA_UPDATE ${MOFIA_ROOT}/update endif if ( $?DEBUG ) then setenv MOFIA_LIBDIR ${MOFIA_ROOT}/lib endif setenv MOFIA_DUMMY ${MOFIA_SOURCE}/dummy setenv MOFIA_INCLUDE ${MOFIA_SOURCE}/include setenv MOFIA_KCM ${MOFIA_SOURCE}/kcm setenv MOFIA_MAIN ${MOFIA_SOURCE}/main setenv MOFIA_MAINF90 ${MOFIA_SOURCE}/mainf90 setenv MOFIA_MIDAS ${MOFIA_SOURCE}/midas setenv MOFIA_MODULES ${MOFIA_SOURCE}/modules setenv MOFIA_OLD ${MOFIA_SOURCE}/old setenv MOFIA_PHOTO ${MOFIA_SOURCE}/photo setenv MOFIA_QOD ${MOFIA_SOURCE}/qod setenv MOFIA_USER ${MOFIA_SOURCE}/user cat ${MOFIA_UPDATE}/note.txt -------------------------------------------------------------------------------  MOFIA devel  1999-Oct-13 Initial f90 version 2000-Mar-30 See $MOFIA_UPDATE/note1.txt for changes. 2000-Sep-05 Version 2.0.1. See $MOFIA_UPDATE/note2.txt for changes. 2001-Apr-03 Version 2.1. See $MOFIA_UPDATE/note3.txt for changes. 2002-Feb-28 Version 2.2. See $MOFIA_UPDATE/note4.txt for changes. 2002-Mar-27 Version 2.2.1 See $MOFIA_UPDATE/note5.txt for changes. 2002-Apr-03 Version 2.2.2 See $MOFIA_UPDATE/note6.txt for changes. ------------------------------------------------------------------------------- alias mnew more ${MOFIA_UPDATE}/note.txt alias mnews more ${MOFIA_UPDATE}/notes_all.txt echo Setting up packages for MOFIA $vers Setting up packages for MOFIA devel if ( $vers == "1.0" ) then new: setup cfm 2.2 source $CFM_COMMANDS/setup.com set nargs = $#setup_args if ( $nargs > 2 ) then if ( $nargs > 1 ) then set vers = $setup_args[2] else if ( ! -e $CFM_COMMANDS/${vers} ) then echo Setting up CFM $vers Setting up CFM 2.2 setenv CFM_ROOT ${CFM_COMMANDS}/${vers} setenv CAL_DB $E614_CAL/caldb_ascii setenv CFM_DB $E614_CAL/cfm/db_noswap setenv CFM_LOG $E614_CAL/cfm/log setenv CFM_DOC ${CFM_ROOT}/doc setenv CFM_LIBRARY ${CFM_ROOT}/lib setenv CFM_MAIN ${CFM_ROOT}/main setenv CFM_SOURCE ${CFM_ROOT}/source setenv CFMLOG ${CFM_LOG}/cfm.log setenv CFMREADLOCK ${CFM_DB}/cfm.readlock setenv CFMWRITELOCK ${CFM_DB}/cfm.writelock setenv CFMREC ${CFM_DB}/cfm.record alias cfm ${CFM_MAIN}/cfm.exe setup bru 1.1 source $BRU_COMMANDS/setup.com set nargs = $#setup_args if ( $nargs > 2 ) then if ( $nargs > 1 ) then set vers = $setup_args[2] else if ( ! -e $BRU_COMMANDS/${vers} ) then setenv BRU_LIBRARY $BRU_COMMANDS/${vers} setup ybos 4.1 source $YBOS_COMMANDS/setup.com set P1 ; set P2 set nargs = $#setup_args if ( $nargs < 2 ) goto no_more set P1 = $setup_args[2] if ( $P1 == "PRODUCTION" ) set P1 = "production" if ( $nargs < 3 ) goto no_more unset nargs if ( $P1 == "" ) set P1 = "production" set YBOS_Version = $P1 set Use_Root = $YBOS_COMMANDS setenv YBOS_ROOT ${Use_Root}/${YBOS_Version} setenv YBOS_DOC ${Use_Root}/${YBOS_Version}/doc setenv YBOS_LIBRARY ${Use_Root}/${YBOS_Version}/library setenv YBOS_TEST ${Use_Root}/${YBOS_Version}/test setenv YBOS_SOURCE ${Use_Root}/${YBOS_Version}/source Exit: unset YBOS_Version unset Use_Root unset P1 ; unset P2 unsetenv IO_DIR goto end mlib f95 debug set os_type = `uname -a | awk '{print $1}'` set VERBOSE unsetenv MOFIA_LIBDIR setenv FFLAGS " " unsetenv CFLAGS unsetenv DFLAGS unsetenv MAKESTD unsetenv CERN_LIBDIR unsetenv CERN_INCLUDE unsetenv F90FLAGS unsetenv I90FLAGS unsetenv LD_COMP setenv CXX " " setenv CXXFLAGS " " setenv ROOTCFLAGS " " setenv ROOTGLIBS " " setenv LIB_SPECIAL " " if ( ! $?TRIUMF_SCRIPTS ) then setenv SYNTAX "syntax" if ( $os_type == IRIX64 || $os_type == IRIX ) then setenv SYNTAX "syntax: mlib [-h] [g77] [f90] [f95] [debug] [profile] [nocheck] [quiet] [[-]query]" endif foreach arg ( $mlib_args ) if ( $arg == -h ) then end if ( $arg == -h ) then end unsetenv SYNTAX foreach arg ( $mlib_args ) if ( $arg == -query ) goto query end if ( $arg == -query ) goto query end if ( `echo $mlib_args | grep -c quiet` ) then if ( `echo $mlib_args | grep -c debug` ) then setenv DEBUG 1 else if ( `echo $mlib_args | grep -c profile` ) then unsetenv PROFILE endif if ( `echo $mlib_args | grep -c nocheck` ) then unsetenv NOCHECK endif unset F95 if ( `echo $mlib_args | grep -c f90` ) then if ( `echo $mlib_args | grep -c f95` ) then set F95 endif setenv CERN_INCLUDE $CERN_LIBRARY/../include if ( $?MOFIA_ROOT ) then setenv IFLAGS "-I. -I$MOFIA_INCLUDE -I$YBOS_LIBRARY -I$CFM_SOURCE -I$BRU_LIBRARY -I$CERN_INCLUDE -I$CERN_INCLUDE/geant321" else if ( $os_type == IRIX64 || $os_type == IRIX ) then if ( $os_type == Linux ) then if ( $?ROOTSYS ) then setenv ROOTCFLAGS " -I$ROOTSYS/include" setenv ROOTGLIBS "-L/usr/X11R6/lib -X -rpath -X $ROOTSYS/lib -L$ROOTSYS/lib -lNew -lCore -lCint -lGraf -lGraf3d -lGpad -lTree -lTreeViewer -lRint -lPostscript -lMatrix -lPhysics -lGui -lm -ldl -lHist -lHtml -lMinuit -lProof -lTree -lGX11 -lX3d -lXpm -lX11" endif if ( $?F95 ) then if ( ! $?ABSOFT ) source ${TRIUMF_SCRIPTS}/setup_absoft80.com setenv ABSOFT /opt/absoft80qf3 setenv PATH $ABSOFT/bin:$PATH echo Using ABSOFT 8.0 QF3 from $ABSOFT Using ABSOFT 8.0 QF3 from /opt/absoft80qf3 setenv CXXFLAGS "-g -Wall -fPIC $ROOTCFLAGS" setenv CFLAGS "-g" setenv F90FLAGS "-g -s -en -M124 -M771 -M37 -M899 -M90 -M1566 -YEXT_SFX="_" -YEXT_NAMES=LCS -YCOM_NAMES=LCS -YCFRL=1" if ( $?DEBUG ) then setenv LIB_SUFFIX _absoft_dbg setenv F90FLAGS "-g ${F90FLAGS}" if ( ! $?NOCHECK ) then setenv F90FLAGS "-Rb -Rc -Rp -Rs ${F90FLAGS}" endif else if ( $?PROFILE ) then if ( $?MOFIA_ROOT ) then setenv MOFIA_LIBDIR $MOFIA_ROOT/lib endif setenv CXX "g++" setenv CC "gcc" setenv F77 "ABSOFT=$ABSOFT $ABSOFT/bin/f77" setenv F90 "ABSOFT=$ABSOFT $ABSOFT/bin/f95" setenv I90FLAGS "$IFLAGS -p $MOFIA_MAINF90" setenv MAKESTD $TRIUMF_SCRIPTS/make.std.absoft setenv DFLAGS "-DUNIX -Dunix -DLINUX -Dlinux -Df90" setenv LD_COMP "ABSOFT=$ABSOFT $ABSOFT/bin/f95" setenv CERN_LIBDIR $CERN_LIBRARY_ABSOFT setenv LIB_SPECIAL "-L$ABSOFT/lib -lU77 -lf90math -lf77math -lfio -lnsl -lreadline -lncurses" else else if ( $os_type == OSF1 ) then if ( -e $TRIUMF_SCRIPTS/mlib-local.csh ) source $TRIUMF_SCRIPTS/mlib-local.csh if ( -e ./mlib-local.csh ) source mlib-local.csh query: if ( $?VERBOSE ) then echo " --- mlib setups ---" --- mlib setups --- echo 'OS type: '$os_type OS type: Linux if ( $?DEBUG ) then echo 'Debug: ON' Debug: ON if ( $?NOCHECK ) then echo 'Check: ON' Check: ON endif else if ( $?PROFILE ) then echo 'Profile: OFF' Profile: OFF endif if ( $os_type == Linux ) then if ( $?F95 ) then echo Compiler: ABSOFT F95, ABSOFT CERNLIBs, ABSOFT=$ABSOFT Compiler: ABSOFT F95, ABSOFT CERNLIBs, ABSOFT=/opt/absoft80qf3 else endif if ( $?ROOTSYS ) then echo 'Root: ' $ROOTSYS Root: /twist/local/root else if ( $?CERN_LIBDIR ) then echo 'Cern: ' $CERN_LIBDIR Cern: /twist/local/cern_absoft/2002/lib else if ( $?MOFIA_ROOT ) then echo Mofia libraries: $MOFIA_LIBDIR Mofia libraries: /home/e614/private_html/nightly_builds/triumf/mofia/devel/lib echo Mofia mainf90 modules: $MOFIA_MAINF90 Mofia mainf90 modules: /home/e614/private_html/nightly_builds/triumf/mofia/devel/source/mainf90 else echo Make rules: $MAKESTD Make rules: /home/e614/e614soft/triumf/make.std.absoft endif unsetenv VERBOSE unsetenv PROFILE unsetenv DEBUG unsetenv NOCHECK cd $HERE/triumf/mofia/devel ./make_qod Makefile:36: "If compiling a debug version you must compile hdiff without bounds checking rm -f qod qod *.o *_cpp.f90 *_cpp.f *.mod Dependencies Makefile:36: "If compiling a debug version you must compile hdiff without bounds checking using .f90.o rules /lib/cpp -P -traditional -E -I. -I/home/e614/private_html/nightly_builds/triumf/mofia/devel/source/include -I/home/e614/e614soft/triumf/ybos/4.1/library -I/home/e614/e614soft/triumf/cfm/2.2/source -I/home/e614/e614soft/triumf/bru/1.1 -I/cern/2002/lib/../include -I/cern/2002/lib/../include/geant321 -DUNIX -Dunix -DLINUX -Dlinux -Df90 user_hists_mod.f90 user_hists_mod_cpp.f90 ABSOFT=/opt/absoft80qf3 /opt/absoft80qf3/bin/f95 -c -o user_hists_mod.o -Rb -Rc -Rp -Rs -g -g -s -en -M124 -M771 -M37 -M899 -M90 -M1566 -YEXT_SFX=_ -YEXT_NAMES=LCS -YCOM_NAMES=LCS -YCFRL=1 -I. -I/home/e614/private_html/nightly_builds/triumf/mofia/devel/source/include -I/home/e614/e614soft/triumf/ybos/4.1/library -I/home/e614/e614soft/triumf/cfm/2.2/source -I/home/e614/e614soft/triumf/bru/1.1 -I/cern/2002/lib/../include -I/cern/2002/lib/../include/geant321 -p /home/e614/private_html/nightly_builds/triumf/mofia/devel/source/mainf90 user_hists_mod_cpp.f90 MODULE user_hists_mod ^ cf90-855 f90fe: ERROR USER_HISTS_MOD, File = user_hists_mod_cpp.f90, Line = 1, Column = 8 The compiler has detected errors in module "USER_HISTS_MOD". No module information file will be created for this module. use trackrange_mod ^ cf90-292 f90fe: ERROR UFILLPOSTFILTERHISTS, File = user_hists_mod_cpp.f90, Line = 286, Column = 9 "TRACKRANGE_MOD" is specified as the module name on a USE statement, but the compiler cannot find it. if (TRmaxR(MuWin) < 4.0) then ^ cf90-232 f90fe: ERROR UFILLPOSTFILTERHISTS, File = user_hists_mod_cpp.f90, Line = 371, Column = 18 IMPLICIT NONE is specified in the local scope, therefore an explicit type must be specified for function "TRMAXR". f90: Copyright Absoft Corporation 1994-2002; Absoft Pro FORTRAN Version 8.0 f90fe: 476 source lines f90fe: 3 Errors, 0 Warnings, 0 Other messages, 0 ANSI make: *** [user_hists_mod.o] Error 1