Re: [Quantlib-users] QuantLib 0.9.0 released

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [Quantlib-users] QuantLib 0.9.0 released

Roland Lichters-2
On 12/24/07, Nathan Abbott <[hidden email]> wrote:
> I have just run the tests in the testsuite program and have come across
> these errors. I compile QuantLib with Boost1.34.1 and Visual C++ 2005.
>
> 1>Testing consistency of piecewise-log-linear discount curve...
> 1>unknown location(0): fatal error in
> "PiecewiseYieldCurveTest::testLogLinearDiscountConsistency":
> std::exception: negative time (- 0.00277778) given

Hi Nathan,

I am looking into it at the moment. You are right, but fortunately the
error appears with today's date = 24/12/07 only, and not with any
other date in December. It is related to the new BMA yield curve test
that depends on three calendars, TARGET, London, New York that treat
the 26th differently.

The error can be circumvented by changing the piecewiseyieldcurve.cpp
test, i.e. setting the termstructure reference date to today instead
of settlement:

    termStructure = boost::shared_ptr<YieldTermStructure>(
                          new PiecewiseYieldCurve<T,I>(today,
                                                       bmaHelpers,
                                                       Actual360(), 1.0e-12,
                                                       interpolator));

I will try to understand that and see whether we can keep using the
settlement date as reference.

Happy new year,
Roland

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Quantlib-users] QuantLib 0.9.0 released

Luigi Ballabio
On Tue, 2008-01-01 at 15:51 +0000, Roland Lichters wrote:
> On 12/24/07, Nathan Abbott <[hidden email]> wrote:
> > I have just run the tests in the testsuite program and have come across
> > these errors. I compile QuantLib with Boost1.34.1 and Visual C++ 2005.
>
> I am looking into it at the moment. You are right, but fortunately the
> error appears with today's date = 24/12/07 only, and not with any
> other date in December. It is related to the new BMA yield curve test
> that depends on three calendars, TARGET, London, New York that treat
> the 26th differently.

Serves me right for making a holiday release... (Bah! Humbug!)
Setting the curve calendar to the joint calendar of NY and London might
work, too. I'll look at your patch in the next days.

Thanks,
        Luigi


--

Use every man after his desert, and who shall scape whipping?
-- Hamlet, Act II, scene II



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev