This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrimitiveArrayCast{ | |
public: | |
static Status SafeCast(const PrimitiveArray& input , const std::shared_ptr<DataType> & target_type, MemoryPool * pool , std::shared_ptr <PrimitiveArray> * out){ | |
//! Check if types are equal | |
if(input.type()->Equals(target_type)){ | |
//! We can simply reinterpret | |
//!! Cannot Call Set Data as it is decalred as protected | |
out->get()->SetData(input.data()) ; | |
} | |
else{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -uNr mbdyn-1.7.1/mbdyn/base/invsolver.cc mbdyn-1.7.1!/mbdyn/base/invsolver.cc | |
--- mbdyn-1.7.1/mbdyn/base/invsolver.cc 2016-04-25 00:40:43.000000000 +0530 | |
+++ mbdyn-1.7.1!/mbdyn/base/invsolver.cc 2016-08-04 00:15:08.594514000 +0530 | |
@@ -245,9 +245,9 @@ | |
/* relink those known drive callers that might need | |
* the data manager, but were verated ahead of it */ | |
- if (pStrategyChangeDrive) { | |
+ /*if (pStrategyChangeDrive) { | |
pStrategyChangeDrive->SetDrvHdl(pDM->pGetDrvHdl()); |