mirror of
https://asciireactor.com/otho/cloudy-agn.git
synced 2025-06-27 05:33:27 +00:00
scripts
This commit is contained in:
parent
62096682e3
commit
d9fb4329ac
@ -4,9 +4,10 @@ title magdziarz 1997 hden_vs_phi .25 dex
|
|||||||
//
|
//
|
||||||
// single run copied from the standard magdziarz grid
|
// single run copied from the standard magdziarz grid
|
||||||
//
|
//
|
||||||
////// Output continua
|
////// Output continua and included lines
|
||||||
//
|
//
|
||||||
save last incident continuum ".incident_continuum"
|
save last incident continuum "incident_continuum"
|
||||||
|
save line labels "line_labels"
|
||||||
//
|
//
|
||||||
////// Formatting
|
////// Formatting
|
||||||
//
|
//
|
||||||
@ -18,7 +19,6 @@ print last
|
|||||||
print line precision 6
|
print line precision 6
|
||||||
print line iso collapsed on
|
print line iso collapsed on
|
||||||
Database print
|
Database print
|
||||||
save line labels ".line_labels"
|
|
||||||
//
|
//
|
||||||
////// Resolved energy states for atomic models
|
////// Resolved energy states for atomic models
|
||||||
//
|
//
|
||||||
|
@ -4,11 +4,12 @@ title mehdipour ngc5548 hden_vs_phi 4thdex
|
|||||||
//
|
//
|
||||||
// single run copied from the standard mehdipour grid
|
// single run copied from the standard mehdipour grid
|
||||||
//
|
//
|
||||||
////// Output continua
|
////// Output continua and included lines
|
||||||
//
|
//
|
||||||
save last incident continuum ".incident_continuum"
|
save last incident continuum "incident_continuum"
|
||||||
|
save line labels "line_labels"
|
||||||
//
|
//
|
||||||
////// Formatting
|
////// Formatting
|
||||||
//
|
//
|
||||||
print line column
|
print line column
|
||||||
print line inward
|
print line inward
|
||||||
@ -18,7 +19,6 @@ print last
|
|||||||
print line precision 6
|
print line precision 6
|
||||||
print line iso collapsed on
|
print line iso collapsed on
|
||||||
Database print
|
Database print
|
||||||
save line labels ".line_labels"
|
|
||||||
//
|
//
|
||||||
////// Resolved energy states for atomic models
|
////// Resolved energy states for atomic models
|
||||||
//
|
//
|
||||||
|
@ -34,13 +34,13 @@ int main(int argc, char const *argv[]) {
|
|||||||
zeroreport << "These headers were pulled from tables"
|
zeroreport << "These headers were pulled from tables"
|
||||||
<< " that returned minimum values."
|
<< " that returned minimum values."
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
int zeroes=0;
|
int num_zeroes=0;
|
||||||
while(table_it != tables.end()) {
|
while(table_it != tables.end()) {
|
||||||
if(agn::is_zero(*table_it)) {
|
if(agn::is_zero(*table_it)) {
|
||||||
zeroreport << " "
|
zeroreport << " "
|
||||||
<< table_it->header[0]
|
<< table_it->header[0]
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
zeroes++;
|
num_zeroes++;
|
||||||
table_it = tables.erase(table_it);
|
table_it = tables.erase(table_it);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ int main(int argc, char const *argv[]) {
|
|||||||
table_it++;
|
table_it++;
|
||||||
}
|
}
|
||||||
std::cout << "Removed "
|
std::cout << "Removed "
|
||||||
<< zeroes
|
<< num_zeroes
|
||||||
<< " tables from the list because"
|
<< " tables from the list because"
|
||||||
<< " they had zero value."
|
<< " they had zero value."
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user