#132 closed defect (fixed)
The same serie can be defined twice without any error or warning message
Reported by: | request | Owned by: | danirus |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | TimeSetAlgebra | Version: | head |
Severity: | normal | Keywords: | |
Cc: |
Description
/* The same serie can be defined twice without any error or warning message
File error200408-132a.bdt (the serie value is defined):
C ;value;
2004/01/20; 200;
2004/02/25; 250;
File error200408-132b.bdt (the serie value is defined again):
Monthly ;value;
2004/01/11; 300;
2004/01/21; 350;
Depending on the evaluation point the serie values:
1) Dating C (always) and values 200 and 250
2) Dating C (always) and values 300 and 350
The set inc001 has 1 element (always)
The set inc002 has 0 elements (always)
No error or warning are emited like (ERROR: Variable 'value' already defined
as ... Can not create ...
*/
Set inc001 = Include("error200408-132a.bdt");
1) If the following TimeSet and values of the first file
Text WriteLn("SumS = "+FormatReal(SumS(value), "%.0lf"));
Set inc002 = Include("error200408-132b.bdt");
2) If the following TimeSet of the first file and values of the second
Text WriteLn("SumS = "+FormatReal(SumS(value), "%.0lf"));
Change History (3)
comment:1 Changed 21 years ago by
comment:2 Changed 21 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This bug has just been resolved.
Method BSetIncludeBDT::CalcContens must show an error when another variable
Serie has been created with the same name as the one written in the header BDT
file.
Now we get the next error message:
Error: Variable "value" of type Serie already defined.
comment:3 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000132 |
---|
Note that
File error200408-132b.bdt (the serie value is defined again):
Monthly ;value;
2004/01/11; 300;
2004/01/21; 350;
Dates 2004/01/11 and 2004/01/21 are not in a Monthly basis, but there
is not a problem because the Dating is C in any case