#303 closed defect (fixed)
Error when include a bmt file
Reported by: | César Pérez Álvarez | Owned by: | danirus |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Math | Version: | head |
Severity: | critical | Keywords: | |
Cc: |
Description
If we include a bmt file, for example, c:/mat.bmt like this:
-1.647081; -0.548681; -1.101705; -2.557489; 0.612478;
0.701124; -0.209204; -1.918051; 0.665802; 0.186298;
-0.163258; -1.386872; 1.481842; -0.240346; -0.557207;
-0.136672; 0.952152; -0.110618; -0.278747; -1.463939;
1.608899; 0.135191; 0.386155; -0.596114; 1.671279;
with IncludeBMT, we obtain the follow matrix:
-1.647081 0.548681 1.101705 2.557489 0.612478
0.701124 0.209204 1.918051 0.665802 0.186298
-0.163258 1.386872 1.481842 0.240346 0.557207
-0.136672 0.952152 0.110618 0.278747 1.463939
1.608899 0.135191 0.386155 0.596114 1.671279
I think that is the function IncludeBMT and it is not a viewer effect. If you use
Set setMat = IncludeBMT("c:/mat.bmt");
Real oneData = MatDat(setMat[1], 5,4);
the value is 0.596114 and not -0.596114
Change History (4)
comment:1 Changed 20 years ago by
Status: | new → assigned |
---|
comment:2 Changed 20 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000287 |
---|
comment:4 Changed 18 years ago by
dependson: | → 287 |
---|
Fixed.
In effect, as you said, it was a problem in IncludeBMT function.
All characters after the number in first column was overriden using
while(!isdigit(foo[0])) ++foo;
Check out the code from the CVS. Only btol/set_type/setgra.cpp is involved.
Cheers, Daniel