Subhasis Ray - 2015-06-29

Hi,
Please try to replace moose/pymoose/melement.cpp with this file:
https://sourceforge.net/p/moose/code/HEAD/tree/moose/branches/moose_nsdf/pymoose/melement.cpp?format=raw
and rebuild. However, 32 bit systems will limit the number of vecs to 2^16
and elements/field elements within a vec to only 2^8.

Best,

  • Subhasis

On Sun, Jun 28, 2015 at 11:42 PM, Ticket 167 167@bugs.moose.p.re.sf.net
wrote:


** [bugs:#167] Few tests in test_pymoose.py are failing on OpenSuse/32
Bit architecture**

Status: open
Group: async13
Labels: pymoose
Created: Sun Jun 28, 2015 06:12 PM UTC by Anonymous
Last Updated: Sun Jun 28, 2015 06:12 PM UTC
Owner: nobody

The script tests/python/test_pymoose.py contains many test. On 32 bit
platfrom, testHash function is failing. Following is the output:
tral

~~~~~
.....
Created 553 path=neutral37770719855491517228903636223651920149/b numData=1
isGlobal=0 baseType=Neutral
Created 554 path=/neutral308978715049666217345658124111349358159 numData=3
isGlobal=0 baseType=Neutral
neutral37770719855491517228903636223651920149
neutral37770719855491517228903636223651920149/b
/neutral37770719855491517228903636223651920149[0]
/neutral37770719855491517228903636223651920149[0]/b[0]
3 3
.Created 555 path=neutral272687739095049529399358978591748180758 numData=1
isGlobal=0 baseType=Neutral
Created 556 path=neutral272687739095049529399358978591748180758/b
numData=1 isGlobal=0 baseType=Neutral
Created 557 path=/neutral263546250745878108083714856063914104028 numData=3
isGlobal=0 baseType=Neutral
neutral272687739095049529399358978591748180758
neutral272687739095049529399358978591748180758/b
/neutral272687739095049529399358978591748180758[0]
/neutral272687739095049529399358978591748180758[0]/b[0]
3 3
......Created 564 path=/x numData=10 isGlobal=0 baseType=Neutral
Created 565 path=/x[5]/y numData=10 isGlobal=0 baseType=IntFire
Created 566 path=/x[5]/z numData=3 isGlobal=0 baseType=PulseGen
Created 567 path=/x[5]/z[2]/u numData=10 isGlobal=0 baseType=IntFire
..0: Error: SetGet::strGet: Field Vm not found on Element z
0: Error: SetGet::strGet: Field Vm not found on Element z
0: Error: SetGet::strGet: Field Vm not found on Element z
..
======================================================================
FAIL: testHash (main.TestNeutral)
Test if our hash function for ObjId is doing the right thing - the


Traceback (most recent call last):
File "test_pymoose.py", line 57, in testHash
self.assertEqual(hash(oid), oid.vec.value << 48 | oid.dindex << 16 |
oid.findex)
AssertionError: 0 != 125537839612952576L


Ran 31 tests in 0.042s

FAILED (failures=1)
~~~~~

I think this test passes on 64 bit OS.


Sent from sourceforge.net because you indicated interest in <
https://sourceforge.net/p/moose/bugs/167/>

To unsubscribe from further messages, please visit <
https://sourceforge.net/auth/subscriptions/>

 

Related

Bugs: #167