yingjerkao / uni10

Official Repo for Uni10
28 stars 9 forks source link

h5save has not been defined #7

Closed rezah closed 8 years ago

rezah commented 8 years ago

Suppose T1 is a UniTensor class, by following you'll get an error,

T1.h5save("T1");

error: ‘class uni10::UniTensor’ has no member named ‘h5save’ T1.h5save("T1");

rezah commented 8 years ago

I again write about the issue. May I miss something?

suppose T1 is a uniTensor, by calling the following function, there would be an error,

T1.h5save("T1");

error: error: ‘class uni10::UniTensor’ has no member named ‘h5save’

I've attache the sample code....

Uni10.cpp.zip

I'm looking forward to hearing from you.

yingjerkao commented 8 years ago

Bug reproduced. Exploring.

yingjerkao commented 8 years ago

Due to the structure of the UniTensor.h, you need to add -DHDF5 flag when you compile your code.