Fork me on GitHub

Changeset 861ad5a in git for external/Hector


Ignore:
Timestamp:
May 29, 2019, 3:06:54 PM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
ImprovedOutputFile, Timing, master
Children:
1a4956e
Parents:
969eb19
Message:

fix degenerate beam tests in Hector/H_Beam.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/Hector/H_Beam.h

    r969eb19 r861ad5a  
    107107        //@{
    108108                inline const float getEmittanceX() const {
    109                     if(!x_disp*tx_disp) cout<<"Warning : Degenerate Beam : x-emittance = 0"<<endl;     
     109                    if(x_disp * tx_disp == 0) cout<<"Warning : Degenerate Beam : x-emittance = 0"<<endl;       
    110110                        return x_disp * tan(tx_disp/URAD)/URAD;
    111111                }
    112112        inline const float getEmittanceY() const {
    113                         if(!y_disp*ty_disp) cout<<"Warning : Degenerate Beam : y-emittance = 0"<<endl;
     113                    if(y_disp * ty_disp == 0) cout<<"Warning : Degenerate Beam : y-emittance = 0"<<endl;
    114114                        return y_disp * tan(ty_disp/URAD)/URAD;
    115115                }
Note: See TracChangeset for help on using the changeset viewer.