aboutsummaryrefslogtreecommitdiff
path: root/Source/Python
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2020-01-31 12:19:05 -0800
committerGravatar Andrew Myers <atmyers2@gmail.com> 2020-01-31 12:19:05 -0800
commit6651d1df96f67e162ced862093633e925cbc8133 (patch)
tree25be32604c7ee0b8cebd1e2e9f770d84a9aaa5ca /Source/Python
parente1a4813b2cf90ba8112acd6211304a3c92d09af9 (diff)
parent3f5bcb4a798862e0a5aa604e5dce162bb0e291b3 (diff)
downloadWarpX-6651d1df96f67e162ced862093633e925cbc8133.tar.gz
WarpX-6651d1df96f67e162ced862093633e925cbc8133.tar.zst
WarpX-6651d1df96f67e162ced862093633e925cbc8133.zip
Merge branch 'dev' into soa_to_aos
Diffstat (limited to 'Source/Python')
-rw-r--r--Source/Python/WarpXWrappers.cpp17
-rw-r--r--Source/Python/WarpXWrappers.h9
-rw-r--r--Source/Python/WarpX_py.H7
-rw-r--r--Source/Python/WarpX_py.cpp7
4 files changed, 40 insertions, 0 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp
index e72d467d7..bf5377dae 100644
--- a/Source/Python/WarpXWrappers.cpp
+++ b/Source/Python/WarpXWrappers.cpp
@@ -1,3 +1,11 @@
+/* Copyright 2019 Andrew Myers, Axel Huebl, David Grote
+ * Luca Fedeli, Maxence Thevenet, Remi Lehe
+ * Weiqun Zhang
+ *
+ * This file is part of WarpX.
+ *
+ * License: BSD-3-Clause-LBNL
+ */
#include <WarpXWrappers.h>
#include <WarpXParticleContainer.H>
@@ -404,6 +412,11 @@ extern "C"
return warpx.plotInt ();
}
+ int warpx_openpmdInt () {
+ WarpX& warpx = WarpX::GetInstance();
+ return warpx.openpmdInt ();
+ }
+
void warpx_WriteCheckPointFile () {
WarpX& warpx = WarpX::GetInstance();
warpx.WriteCheckPointFile ();
@@ -412,6 +425,10 @@ extern "C"
WarpX& warpx = WarpX::GetInstance();
warpx.WritePlotFile ();
}
+ void warpx_WriteOpenPMDFile () {
+ WarpX& warpx = WarpX::GetInstance();
+ warpx.WriteOpenPMDFile ();
+ }
int warpx_finestLevel () {
WarpX& warpx = WarpX::GetInstance();
diff --git a/Source/Python/WarpXWrappers.h b/Source/Python/WarpXWrappers.h
index 4de885b88..53309ad93 100644
--- a/Source/Python/WarpXWrappers.h
+++ b/Source/Python/WarpXWrappers.h
@@ -1,3 +1,10 @@
+/* Copyright 2019 Andrew Myers, David Grote, Maxence Thevenet
+ * Remi Lehe, Weiqun Zhang
+ *
+ * This file is part of WarpX.
+ *
+ * License: BSD-3-Clause-LBNL
+ */
#ifndef WARPX_WRAPPERS_H_
#define WARPX_WRAPPERS_H_
@@ -95,9 +102,11 @@ extern "C" {
int warpx_checkInt ();
int warpx_plotInt ();
+ int warpx_openpmdInt ();
void warpx_WriteCheckPointFile ();
void warpx_WritePlotFile ();
+ void warpx_WriteOpenPMDFile ();
int warpx_finestLevel ();
diff --git a/Source/Python/WarpX_py.H b/Source/Python/WarpX_py.H
index d8cf22155..b6a813bfc 100644
--- a/Source/Python/WarpX_py.H
+++ b/Source/Python/WarpX_py.H
@@ -1,3 +1,10 @@
+/* Copyright 2019 David Grote, Maxence Thevenet, Weiqun Zhang
+ *
+ *
+ * This file is part of WarpX.
+ *
+ * License: BSD-3-Clause-LBNL
+ */
#ifndef WARPX_PY_H_
#define WARPX_PY_H_
diff --git a/Source/Python/WarpX_py.cpp b/Source/Python/WarpX_py.cpp
index 276d637d7..4ca06b644 100644
--- a/Source/Python/WarpX_py.cpp
+++ b/Source/Python/WarpX_py.cpp
@@ -1,3 +1,10 @@
+/* Copyright 2019 David Grote, Maxence Thevenet, Weiqun Zhang
+ *
+ *
+ * This file is part of WarpX.
+ *
+ * License: BSD-3-Clause-LBNL
+ */
#include <WarpX_py.H>
extern "C" {