5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -133,13 +133,15 @@ cJac(
133
133
134
134
// fill the sunMat and scale
135
135
for (int i = 0 ; i < NUM_SPECIES; i++) {
136
+ // cppcheck-suppress cstyleCast
136
137
amrex::Real* J_col = SM_COLUMN_D (J, offset + i);
137
138
for (int k = 0 ; k < NUM_SPECIES; k++) {
138
139
J_col[offset + k] = Jmat_tmp[i * (NUM_SPECIES + 1 ) + k] * mw[k] / mw[i];
139
140
}
140
141
J_col[offset + NUM_SPECIES] =
141
142
Jmat_tmp[i * (NUM_SPECIES + 1 ) + NUM_SPECIES] / mw[i];
142
143
}
144
+ // cppcheck-suppress cstyleCast
143
145
amrex::Real* J_col = SM_COLUMN_D (J, offset + NUM_SPECIES);
144
146
for (int i = 0 ; i < NUM_SPECIES; i++) {
145
147
J_col[offset + i] = Jmat_tmp[NUM_SPECIES * (NUM_SPECIES + 1 ) + i] * mw[i];
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ struct ConstTransport
91
91
}
92
92
93
93
template <class ... Args>
94
- AMREX_GPU_HOST_DEVICE ConstTransport (Args... /* unused*/ )
94
+ AMREX_GPU_HOST_DEVICE explicit ConstTransport (Args... /* unused*/ )
95
95
{
96
96
}
97
97
};
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ public:
351
351
352
352
private:
353
353
TransParm<EosType, TransportType> m_h_trans_parm;
354
- TransParm<EosType, TransportType>* m_d_trans_parm;
354
+ TransParm<EosType, TransportType>* m_d_trans_parm{ nullptr } ;
355
355
bool m_device_allocated{false };
356
356
};
357
357
} // namespace transport
Original file line number Diff line number Diff line change @@ -32,11 +32,10 @@ public:
32
32
protected:
33
33
// MetaData
34
34
std::string m_pltFile; // pltfile name
35
- int m_nvars; // number of variables
35
+ int m_nvars{ 0 }; // number of variables
36
36
amrex::Vector<std::string> m_vars; // list of variable in the plotfile
37
- int m_nlevels; // number of levels
38
- amrex::Real m_time; // Simulation time
39
- amrex::Real m_nsteps; // Simulation step count
37
+ int m_nlevels{0 }; // number of levels
38
+ amrex::Real m_time{0.0 }; // Simulation time
40
39
41
40
amrex::Vector<amrex::BoxArray> m_grids;
42
41
amrex::Vector<amrex::Geometry> m_geoms;
Original file line number Diff line number Diff line change @@ -22,9 +22,8 @@ GotoNextLine(std::istream& is)
22
22
}
23
23
24
24
PltFileManager::PltFileManager (const std::string& a_pltFile)
25
+ : m_pltFile{a_pltFile}
25
26
{
26
- m_pltFile = a_pltFile;
27
-
28
27
// Get the plt metadata and resize part of the data vectors
29
28
std::string pltFileHeader (m_pltFile + " /Header" );
30
29
readGenericPlotfileHeader (pltFileHeader);
0 commit comments