COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cerrorMsg.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine cerrormsg (msg, needrtn)
 
subroutine cbacktrace (a, b, c)
 

Function/Subroutine Documentation

◆ cbacktrace()

subroutine cbacktrace ( real(8), intent(out)  a,
real(8), intent(out)  b,
real(8), dimension(1000000), intent(out)  c 
)

Definition at line 25 of file cerrorMsg.f.

Referenced by cerrormsg(), and cgetlf().

25 ! This is to print back trace information
26 ! when some error is detected by the user
27 ! and the user want to see the routine names
28 ! before the error is detected. (compilation
29 ! with backtrace mode is needed)
30 ! the calling program should not contain
31 ! good "a b c". but may be better to be
32 ! call cbactTrace(dummy)
33 !
34  implicit none
35  real(8),intent(out)::a, b, c(1000000)
36 
37  c(:) = 0.
38  b = 100.
39  a = 100.
real(4), save a
Definition: cNRLAtmos.f:20
real(4), save b
Definition: cNRLAtmos.f:21
dE dx *! Nuc Int sampling table c
Definition: cblkMuInt.h:130
Here is the caller graph for this function:

◆ cerrormsg()

subroutine cerrormsg ( character*(*)  msg,
integer  needrtn 
)

Definition at line 4 of file cerrorMsg.f.

References cbacktrace().

Referenced by __atmosd.f__(), __getst.f__(), __randomsel.f__(), __ranseeascii.f__(), __reanal.f__(), __seeascii.f__(), __select.f__(), __smashskel.f__(), __smashskelsmallfileno.f__(), __smashskeltrial.f__(), cbeginrun(), ccode2hvgrp(), ccode2mass(), ccoordfortr(), ccos2kf(), cdecaywel(), cexmprimeu(), cexmprimsymb(), cfixmcsmodel(), cfixmodel(), cfixtarget(), cformfullpath(), cgeomag(), cgethost(), cgetrigcut(), cgetrotmat3(), cgetskelfile(), cghvm(), cgmgigrf(), cgmgwmm(), cgpid(), chacoladhoc(), chacolx(), chanewlund(), chookbgevent(), chookbgrun(), chookenrun(), chookobs(), cifcutoff(), cifxhorizon(), cinclusive(), cinipipx(), cinippx(), cinippxn(), cinisegatmos(), cinisprimang(), cinitobs(), cinitracking(), cinitracking0(), cinteddb(), cintedmes(), cinteds(), cinteelec(), cinteheavy(), cintekaon(), cintelambdac(), cintenep(), cintennb(), cintenuc(), cinteomega(), cintephi(), cintephoton(), cintepion(), cinteraction(), cinterho(), cintetau(), cintmodels(), ciso(), citransvectzx(), ckf2cos(), cknockp(), clenbetween2h(), cmag2ecent(), cmanager(), cmbremi1(), cmkinc(), cmkprimstbl(), cmubrdedx(), cmuinte(), cmundedx(), cmuprdedx(), cmydecay(), cned2ecent(), copenf(), copenfw(), copenfw2(), cprintcoord(), cprintmagf(), cprintstatus(), cprocprimdt(), cprptc(), cpush(), cqptclden(), crdgeomag(), crdrigcut2(), crdrigcut4(), creadparam(), creadrigcut(), creadseed(), creplst(), cresetposang(), crestorestatus(), crigcut(), crigcut0(), crigcutfmt1(), crigcutfmt2(), crigcutfmt4(), crigcutfmt5(), cs2lp(), csetcoord(), csetmagfield(), csetpos(), cshvc(), cslp(), csmass(), csmpcolina2(), csprimang(), cssubc(), ctracking(), ctranscoord2(), ctransmagto(), ctransvectzx(), cvh2den(), cvh2denp(), cvh2thick(), cvthick2h(), cwhatjob(), cxpxsec(), cxyz2ned(), distribute(), drawgeomag(), issuemsg(), kcsplcoef(), kscsplcoef(), outtrace(), showparam(), sortbyerg(), testprim(), and xbgrun().

4  implicit none
5 #include "Zmanagerp.h"
6 
7  external cblkmanager
8 
9  character*(*) msg ! input. message to be printed
10  integer needrtn ! input. 0 --> stop 9999,else control is returned
11  integer klena
12  real(8):: dummy
13 
14  if(klena(msg) .ge. 1) then
15  write(errorout, '(a)') msg(1:klena(msg))
16  endif
17  if(needrtn .eq. 0) then
18 #if defined (PCLinuxIFC64) || (PCLinuxIFC) || (MacIFC)
19  call tracebackqq()
20 #endif
21  call cbacktrace(dummy)
22  endif
subroutine cbacktrace(a, b, c)
Definition: cerrorMsg.f:25
integer function klena(cha)
Definition: klena.f:20
Here is the call graph for this function: