[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
changing oct-files to be ready for 3.4
From: |
Carlo de Falco |
Subject: |
changing oct-files to be ready for 3.4 |
Date: |
Wed, 19 Jan 2011 20:04:16 +0100 |
Hi all,
Some time ago I sent this post which remained unanswered:
"http://octave.1599824.n4.nabble.com/Octave-packages-for-IsoGeometric-analysis-and-moving-to-3-4-tp3091510p3091510.html"
Probably the question was not specific enough, so I'll try again reducing the
problem to a minimal function that
shows the same issue
The attached DLD function works as follows in octave 3.2.4:
>> nel = 5; ndof = 10; nsh = 4; nqn = 9;
>> in = ones (nqn, nsh, nel);
>> connectivity = [1 2 3 4; 2 3 4 5; 6 7 8 9; 10 1 2 3; 1 2 3 4; 2 3 4 5; 3 4 5
>> 6; 1 2 3 4; 2 3 4 5; 6 7 8 9]';
>> A = test_ndarray_sparse (in, nel, nsh, nqn, ndof, connectivity);
>> full (A)
ans =
27 27 27 18 0 0 0 0 0 9
27 36 36 27 9 0 0 0 0 9
27 36 36 27 9 0 0 0 0 9
18 27 27 27 9 0 0 0 0 0
0 9 9 9 9 0 0 0 0 0
0 0 0 0 0 9 9 9 9 0
0 0 0 0 0 9 9 9 9 0
0 0 0 0 0 9 9 9 9 0
0 0 0 0 0 9 9 9 9 0
9 9 9 0 0 0 0 0 0 9
>>
while in version 3.3.54+ (built just before the Xmas break) I get
>> nel = 5; ndof = 10; nsh = 4; nqn = 9;
>> in = ones (nqn, nsh, nel);
>> connectivity = [1 2 3 4; 2 3 4 5; 6 7 8 9; 10 1 2 3; 1 2 3 4; 2 3 4 5; 3 4 5
>> 6; 1 2 3 4; 2 3 4 5; 6 7 8 9]';
>> A = test_ndarray_sparse (in, nel, nsh, nqn, ndof, connectivity);
octave(1870,0xa01e8540) malloc: *** error for object 0x5a353f4: incorrect
checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
panic: Segmentation fault -- stopping myself...
Segmentation fault
Can someone please help me find out (or give me some pointers) what has changed
between versions that might be causing this problem?
Many thanks in advance,
Carlo
test_ndarray_sparse.cc
Description: Binary data
- changing oct-files to be ready for 3.4,
Carlo de Falco <=