Use correct sizeof in memset

This commit is contained in:
Richard Berger
2021-10-27 17:00:31 -04:00
committed by Axel Kohlmeyer
parent 0325047c01
commit 765fd7f763

View File

@ -269,7 +269,7 @@ void WriteRestart::write(const std::string &file)
double *buf;
memory->create(buf,max_size,"write_restart:buf");
memset(buf,0,max_size*sizeof(buf));
memset(buf,0,max_size*sizeof(double));
// all procs write file layout info which may include per-proc sizes