Changeset 19766


Ignore:
Timestamp:
Oct 12, 2019, 8:08:04 PM (6 days ago)
Author:
tbretz
Message:
And another constructor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msim/MAtmosphere.h

    r19765 r19766  
    9898        Init(h);//, "ozone.txt", "aerosols.txt");
    9999    }
    100     MAtmosphere(Double_t obs=-1, const char *name1=0, const char *name2=0) : fAbsCoeffOzone(0), fAbsCoeffAerosols(0)
     100    MAtmosphere(Double_t obs=0, const char *name1=0, const char *name2=0) : fAbsCoeffOzone(0), fAbsCoeffAerosols(0)
    101101    {
    102102        MAtmRayleigh::Init(obs);
     103
     104        if (name1)
     105            InitOzone(name1);
     106        if (name2)
     107            InitAerosols(name2);
     108    }
     109    MAtmosphere(const char *name1, const char *name2) : fAbsCoeffOzone(0), fAbsCoeffAerosols(0)
     110    {
     111        MAtmRayleigh::Init(0);
    103112
    104113        if (name1)
Note: See TracChangeset for help on using the changeset viewer.