Skip to content

Commit 518403e

Browse files
committed
pre-commit linter fix
1 parent 58fd76b commit 518403e

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/dataBlock/dataBlockHost.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ DataBlockHost::DataBlockHost(DataBlock& datain) {
8080
this->coarseningDirection = data->coarseningDirection;
8181
for(int dir = 0 ; dir < 3 ; dir++) {
8282
if(coarseningDirection[dir]) {
83-
coarseningLevel[dir] = Kokkos::create_mirror_view(Kokkos::HostSpace(), data->coarseningLevel[dir]);
83+
coarseningLevel[dir] = Kokkos::create_mirror_view(Kokkos::HostSpace(),
84+
data->coarseningLevel[dir]);
8485
}
8586
}
8687
}

src/dataBlock/dumpToFile.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ void DataBlock::DumpToFile(std::string filebase) {
4545

4646

4747
// TODO(lesurg) Make datablock a friend of hydro to get the Riemann flux?
48-
//IdefixArray4D<real>::HostMirror locFlux = Kokkos::create_mirror_view(Kokkos::HostSpace(), this->hydro->FluxRiemann);
48+
//IdefixArray4D<real>::HostMirror locFlux = Kokkos::create_mirror_view(Kokkos::HostSpace(),
49+
// this->hydro->FluxRiemann);
4950
//Kokkos::deep_copy(locFlux, this->FluxRiemann);
5051
#if MHD == YES
5152

@@ -120,7 +121,8 @@ void DataBlock::DumpToFile(std::string filebase) {
120121
// Write Vs
121122
#if MHD == YES
122123
// Write Vs
123-
IdefixArray4D<real>::HostMirror locVs = Kokkos::create_mirror_view(Kokkos::HostSpace(), this->hydro->Vs);
124+
IdefixArray4D<real>::HostMirror locVs = Kokkos::create_mirror_view(Kokkos::HostSpace(),
125+
this->hydro->Vs);
124126
Kokkos::deep_copy(locVs,this->hydro->Vs);
125127
dims[0] = this->np_tot[IDIR]+IOFFSET;
126128
dims[1] = this->np_tot[JDIR]+JOFFSET;
@@ -137,7 +139,8 @@ void DataBlock::DumpToFile(std::string filebase) {
137139
dims[2] = this->np_tot[KDIR];
138140

139141
std::snprintf(fieldName,NAMESIZE,"Ex3");
140-
IdefixArray3D<real>::HostMirror locE = Kokkos::create_mirror_view(Kokkos::HostSpace(), this->hydro->emf->ez);
142+
IdefixArray3D<real>::HostMirror locE = Kokkos::create_mirror_view(Kokkos::HostSpace(),
143+
this->hydro->emf->ez);
141144
Kokkos::deep_copy(locE,this->hydro->emf->ez);
142145
WriteVariable(fileHdl, 3, dims, fieldName, locE.data());
143146

@@ -152,7 +155,8 @@ void DataBlock::DumpToFile(std::string filebase) {
152155

153156

154157
if(hydro->haveCurrent) {
155-
IdefixArray4D<real>::HostMirror locJ = Kokkos::create_mirror_view(Kokkos::HostSpace(), this->hydro->J);
158+
IdefixArray4D<real>::HostMirror locJ = Kokkos::create_mirror_view(Kokkos::HostSpace(),
159+
this->hydro->J);
156160
Kokkos::deep_copy(locJ,this->hydro->J);
157161
dims[0] = this->np_tot[IDIR];
158162
dims[1] = this->np_tot[JDIR];

0 commit comments

Comments
 (0)