close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 20 years ago

Closed 19 years ago

Last modified 13 years ago

#239 closed defect (fixed)

Embedded TimeSet functions causes TOL to die

Reported by: ptejedor Owned by: Víctor de Buen Remiro
Priority: normal Milestone:
Component: TimeSetAlgebra Version: 1.1.2
Severity: normal Keywords:
Cc:

Description

If you want to calculate timesets as "the monday nearest Corpus Christi", by
calculating first Corpus Christi (Succ(Easter,60) and then calling a function to
calculate a transformation over it, like in the example below, TOL enters in a
state in which it asks for 100% CPU, and it eventually dies. Here is a snippet
of code to demonstrate it:

TimeSet LC(TimeSet t){

LC: lunes cercanos: transfiere los dias pertenecientes
a t entre semana al lunes mas cercano. Si el dia es
sabado, domingo o lunes, no lo toca
/
TimeSet TsSDL = WD(1) + WD(6) + WD(7);
Sabado, Domingo y Lunes
TimeSet TsMXJ = WD(2) + WD(3) + WD(4); Martes, Miercoles y Jueves
TimeSet TsV = WD(5);
TimeSet final= t*TsSDL + Succ(t*TsMXJ,-1,Semanal) + Succ(t*TsV,+1,Semanal)
};

TimeSet SD=WD(6)+WD(7); Sabados y Domingos
TimeSet CC=Succ(Easter,60);
Corpus Christi
TimeSet LCCC=LC(CC); Lunes previo al Corpus Christi
TimeSet festivos= SD + LCCC;

If you, after compiling this code try to look at the resulting timese, TOL dies
abruptly.

Change History (6)

comment:1 Changed 19 years ago by Víctor de Buen Remiro

Owner: changed from danirus to Víctor de Buen Remiro

Pardon to have forgotten this bug.
We are working about it
Thanks to report it

comment:2 Changed 19 years ago by Víctor de Buen Remiro

Status: newassigned

comment:3 Changed 19 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: assignedclosed

comment:4 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000239

comment:5 Changed 13 years ago by Víctor de Buen Remiro

(In [4347]) Refs #239
Refs #1462
Function BDate DteEasterSunday(BInt year) was not prepared for be stoped in the begin and end dates

comment:6 Changed 13 years ago by Víctor de Buen Remiro

(In [4350]) Refs #239
Refs #1462
Function BDate DteEasterSunday(BInt year) was not prepared for be stoped in the begin and end dates

Note: See TracTickets for help on using tickets.