aboutsummaryrefslogtreecommitdiff
path: root/Source/Python/WarpXWrappers.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-12-18 14:46:15 -0800
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-12-18 14:46:15 -0800
commit4b5b142d63f047a94919e24b8849841560e7be15 (patch)
tree3902fc2edc318c43e29384d252a5a1b3ac9851a6 /Source/Python/WarpXWrappers.cpp
parent8cc9c9f3ea3211f2bea112f7ce4f2f4b3a92e640 (diff)
parent3e39a37f37e693308d54791f9ce4320cf368ea83 (diff)
downloadWarpX-4b5b142d63f047a94919e24b8849841560e7be15.tar.gz
WarpX-4b5b142d63f047a94919e24b8849841560e7be15.tar.zst
WarpX-4b5b142d63f047a94919e24b8849841560e7be15.zip
Merge branch 'dev' into comm
Diffstat (limited to 'Source/Python/WarpXWrappers.cpp')
-rw-r--r--Source/Python/WarpXWrappers.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp
index 3635bcd45..ad34d71ee 100644
--- a/Source/Python/WarpXWrappers.cpp
+++ b/Source/Python/WarpXWrappers.cpp
@@ -14,8 +14,9 @@ namespace
*num_boxes = mf.local_size();
int shapesize = AMREX_SPACEDIM;
if (mf.nComp() > 1) shapesize += 1;
- *shapes = (int*) malloc(shapesize * (*num_boxes) * sizeof(int));
- amrex::Real** data = (amrex::Real**) malloc((*num_boxes) * sizeof(amrex::Real*));
+ *shapes = static_cast<int*>(malloc(sizeof(int)*shapesize * (*num_boxes)));
+ auto data =
+ static_cast<amrex::Real**>(malloc((*num_boxes) * sizeof(amrex::Real*)));
#ifdef _OPENMP
#pragma omp parallel