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

Move PeleRad source files to PelePhysics #459

Merged
merged 7 commits into from
Dec 18, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove std::filesystem.
  • Loading branch information
jrood-nrel committed Dec 15, 2023
commit 8c58a6b12c33eff5dcad18d1552f5a7b4d0a3c1b
22 changes: 6 additions & 16 deletions Source/Radiation/PlanckMean.H
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef PLANCK_MEAN_H
#define PLANCK_MEAN_H

#include <filesystem>
#include <fstream>

#include <AMReX.H>
Expand Down Expand Up @@ -35,21 +34,12 @@ public:
AMREX_GPU_HOST
void load(std::string data_path)
{
using sfp = std::filesystem::path;

sfp kplco2(data_path + "kpl_co2.dat");
sfp kplh2o(data_path + "kpl_h2o.dat");
sfp kplco(data_path + "kpl_co.dat");
sfp kplch4(data_path + "kpl_ch4.dat");
sfp kplc2h4(data_path + "kpl_c2h4.dat");
sfp kplsoot(data_path + "kpl_soot.dat");

std::ifstream dataco2(kplco2);
std::ifstream datah2o(kplh2o);
std::ifstream dataco(kplco);
std::ifstream datach4(kplch4);
std::ifstream datac2h4(kplc2h4);
std::ifstream datasoot(kplsoot);
std::ifstream dataco2(data_path + "kpl_co2.dat");
std::ifstream datah2o(data_path + "kpl_h2o.dat");
std::ifstream dataco(data_path + "kpl_co.dat");
std::ifstream datach4(data_path + "kpl_ch4.dat");
std::ifstream datac2h4(data_path + "kpl_c2h4.dat");
std::ifstream datasoot(data_path + "kpl_soot.dat");

size_t i_co2 = 0;
for (float T_temp, kp_temp; dataco2 >> T_temp >> kp_temp;) {
Expand Down
Loading