Skip to content

Commit

Permalink
try to fix 3RDM for Molcas
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanoff committed Oct 22, 2019
1 parent 78f8b13 commit 5eb4174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/npdm/threepdm_container.C
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ void Threepdm_container::save_spatial_npdm_binary(const int &I, const int &J)
ofs.close();
#else
FILE* f = fopen(file,"wb");
fwrite(spatial_threepdm.data(),sizeof(double),spatial_threepdm.size(),f);
fwrite( (char*)(spatial_threepdm.data),sizeof(double),spatial_threepdm.get_size(),f);
fclose(f);
#endif
}
Expand Down

0 comments on commit 5eb4174

Please sign in to comment.