Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix codeql #426

Merged
merged 3 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Reactions/ReactorCvode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,6 @@ ReactorCvode::freeUserData(CVODEUserData* data_wk)
delete[] (data_wk->PS);
#endif
} else if (data_wk->solve_type == cvode::customDirect) {
// SUNMatDestroy(A);
SUNMatDestroy(data_wk->PSc);
}

Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/Aromatic_KrNara/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[158] = {
0.9920634920634921, // H
0.0312519532470779, // O2
Expand Down Expand Up @@ -383,6 +384,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[158] = {
0.0092510361160450, // OC6H4O
0.0356964374955379, // N2
};
#endif
const amrex::Real h_global_imw[158] = {
0.9920634920634921, // H
0.0312519532470779, // O2
Expand Down Expand Up @@ -545,6 +547,7 @@ const amrex::Real h_global_imw[158] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[158] = {
1.008000, // H
31.998000, // O2
Expand Down Expand Up @@ -705,6 +708,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[158] = {
108.096000, // OC6H4O
28.014000, // N2
};
#endif
const amrex::Real h_global_mw[158] = {
1.008000, // H
31.998000, // O2
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/BurkeDryer/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[13] = {
0.9920634920634921, // H
0.4960317460317460, // H2
Expand All @@ -94,6 +95,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[13] = {
0.0357015351660121, // CO
0.0227226249176305, // CO2
};
#endif
const amrex::Real h_global_imw[13] = {
0.9920634920634921, // H
0.4960317460317460, // H2
Expand All @@ -111,6 +113,7 @@ const amrex::Real h_global_imw[13] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[13] = {
1.008000, // H
2.016000, // H2
Expand All @@ -126,6 +129,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[13] = {
28.010000, // CO
44.009000, // CO2
};
#endif
const amrex::Real h_global_mw[13] = {
1.008000, // H
2.016000, // H2
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/C1-C2-NO/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[44] = {
0.0250312891113892, // AR
0.0356964374955379, // N2
Expand Down Expand Up @@ -155,6 +156,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[44] = {
0.0237998905205036, // NCO
0.0212616673399528, // CH3O2
};
#endif
const amrex::Real h_global_imw[44] = {
0.0250312891113892, // AR
0.0356964374955379, // N2
Expand Down Expand Up @@ -203,6 +205,7 @@ const amrex::Real h_global_imw[44] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[44] = {
39.950000, // AR
28.014000, // N2
Expand Down Expand Up @@ -249,6 +252,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[44] = {
42.017000, // NCO
47.033000, // CH3O2
};
#endif
const amrex::Real h_global_mw[44] = {
39.950000, // AR
28.014000, // N2
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/C1-C2-NO_qss/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[39] = {
0.0250312891113892, // AR
0.0356964374955379, // N2
Expand Down Expand Up @@ -145,6 +146,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[39] = {
0.0237998905205036, // NCO
0.0212616673399528, // CH3O2
};
#endif
const amrex::Real h_global_imw[39] = {
0.0250312891113892, // AR
0.0356964374955379, // N2
Expand Down Expand Up @@ -188,6 +190,7 @@ const amrex::Real h_global_imw[39] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[39] = {
39.950000, // AR
28.014000, // N2
Expand Down Expand Up @@ -229,6 +232,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[39] = {
42.017000, // NCO
47.033000, // CH3O2
};
#endif
const amrex::Real h_global_mw[39] = {
39.950000, // AR
28.014000, // N2
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/CH4_lean/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[17] = {
0.4960317460317460, // H2
0.9920634920634921, // H
Expand All @@ -101,6 +102,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[17] = {
0.0322227234645872, // CH2OH
0.0356964374955379, // N2
};
#endif
const amrex::Real h_global_imw[17] = {
0.4960317460317460, // H2
0.9920634920634921, // H
Expand All @@ -122,6 +124,7 @@ const amrex::Real h_global_imw[17] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[17] = {
2.016000, // H2
1.008000, // H
Expand All @@ -141,6 +144,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[17] = {
31.034000, // CH2OH
28.014000, // N2
};
#endif
const amrex::Real h_global_mw[17] = {
2.016000, // H2
1.008000, // H
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/CH4_lean_qss/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[13] = {
0.4960317460317460, // H2
0.9920634920634921, // H
Expand All @@ -92,6 +93,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[13] = {
0.0333044694598015, // CH2O
0.0356964374955379, // N2
};
#endif
const amrex::Real h_global_imw[13] = {
0.4960317460317460, // H2
0.9920634920634921, // H
Expand All @@ -109,6 +111,7 @@ const amrex::Real h_global_imw[13] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[13] = {
2.016000, // H2
1.008000, // H
Expand All @@ -124,6 +127,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[13] = {
30.026000, // CH2O
28.014000, // N2
};
#endif
const amrex::Real h_global_mw[13] = {
2.016000, // H2
1.008000, // H
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/Davis/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[14] = {
0.4960317460317460, // H2
0.9920634920634921, // H
Expand All @@ -96,6 +97,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[14] = {
0.0293996589639560, // H2O2
0.0227226249176305, // CO2
};
#endif
const amrex::Real h_global_imw[14] = {
0.4960317460317460, // H2
0.9920634920634921, // H
Expand All @@ -114,6 +116,7 @@ const amrex::Real h_global_imw[14] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[14] = {
2.016000, // H2
1.008000, // H
Expand All @@ -130,6 +133,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[14] = {
34.014000, // H2O2
44.009000, // CO2
};
#endif
const amrex::Real h_global_mw[14] = {
2.016000, // H2
1.008000, // H
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/FFCM1_Red/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[21] = {
0.0356964374955379, // N2
0.4960317460317460, // H2
Expand All @@ -109,6 +110,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[21] = {
0.0312090381374446, // CH3OH
0.2498374807187924, // HE
};
#endif
const amrex::Real h_global_imw[21] = {
0.0356964374955379, // N2
0.4960317460317460, // H2
Expand All @@ -134,6 +136,7 @@ const amrex::Real h_global_imw[21] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[21] = {
28.014000, // N2
2.016000, // H2
Expand All @@ -157,6 +160,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[21] = {
32.042000, // CH3OH
4.002602, // HE
};
#endif
const amrex::Real h_global_mw[21] = {
28.014000, // N2
2.016000, // H2
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/IonizedAir/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[5] = {
0.0312519532470779, // O2
0.0356964374955379, // N2
1822.8884868472639482, // E
0.0625017634094834, // On
0.0312514174667246, // O2n
};
#endif
const amrex::Real h_global_imw[5] = {
0.0312519532470779, // O2
0.0356964374955379, // N2
Expand All @@ -84,13 +86,15 @@ const amrex::Real h_global_imw[5] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[5] = {
31.998000, // O2
28.014000, // N2
0.000549, // E
15.999549, // On
31.998549, // O2n
};
#endif
const amrex::Real h_global_mw[5] = {
31.998000, // O2
28.014000, // N2
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/JL4/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[7] = {
0.0623324814560868, // CH4
0.0312519532470779, // O2
Expand All @@ -80,6 +81,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[7] = {
0.0227226249176305, // CO2
0.4960317460317460, // H2
};
#endif
const amrex::Real h_global_imw[7] = {
0.0623324814560868, // CH4
0.0312519532470779, // O2
Expand All @@ -91,6 +93,7 @@ const amrex::Real h_global_imw[7] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[7] = {
16.043000, // CH4
31.998000, // O2
Expand All @@ -100,6 +103,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[7] = {
44.009000, // CO2
2.016000, // H2
};
#endif
const amrex::Real h_global_mw[7] = {
16.043000, // CH4
31.998000, // O2
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/Kolla/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[12] = {
0.4960317460317460, // H2
0.0312519532470779, // O2
Expand All @@ -90,6 +91,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[12] = {
0.0344613688055690, // HCO
0.0356964374955379, // N2
};
#endif
const amrex::Real h_global_imw[12] = {
0.4960317460317460, // H2
0.0312519532470779, // O2
Expand All @@ -106,6 +108,7 @@ const amrex::Real h_global_imw[12] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[12] = {
2.016000, // H2
31.998000, // O2
Expand All @@ -120,6 +123,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[12] = {
29.018000, // HCO
28.014000, // N2
};
#endif
const amrex::Real h_global_mw[12] = {
2.016000, // H2
31.998000, // O2
Expand Down
4 changes: 4 additions & 0 deletions Support/Mechanism/Models/LiDryer/mechanism.H
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ CKINDX(int& mm, int& kk, int& ii, int& nfit)
}

// inverse molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_imw[9] = {
0.4960317460317460, // H2
0.0312519532470779, // O2
Expand All @@ -83,6 +84,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_imw[9] = {
0.0293996589639560, // H2O2
0.0356964374955379, // N2
};
#endif
const amrex::Real h_global_imw[9] = {
0.4960317460317460, // H2
0.0312519532470779, // O2
Expand All @@ -96,6 +98,7 @@ const amrex::Real h_global_imw[9] = {
};

// molecular weights
#ifdef AMREX_USE_GPU
AMREX_GPU_CONSTANT const amrex::Real global_mw[9] = {
2.016000, // H2
31.998000, // O2
Expand All @@ -107,6 +110,7 @@ AMREX_GPU_CONSTANT const amrex::Real global_mw[9] = {
34.014000, // H2O2
28.014000, // N2
};
#endif
const amrex::Real h_global_mw[9] = {
2.016000, // H2
31.998000, // O2
Expand Down
Loading
Loading