mirror of
https://asciireactor.com/otho/cloudy-agn.git
synced 2024-12-05 01:35:08 +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
|
||||
//
|
||||
////// 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
|
||||
//
|
||||
@ -18,7 +19,6 @@ print last
|
||||
print line precision 6
|
||||
print line iso collapsed on
|
||||
Database print
|
||||
save line labels ".line_labels"
|
||||
//
|
||||
////// 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
|
||||
//
|
||||
////// 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 inward
|
||||
@ -18,7 +19,6 @@ print last
|
||||
print line precision 6
|
||||
print line iso collapsed on
|
||||
Database print
|
||||
save line labels ".line_labels"
|
||||
//
|
||||
////// Resolved energy states for atomic models
|
||||
//
|
||||
|
@ -34,13 +34,13 @@ int main(int argc, char const *argv[]) {
|
||||
zeroreport << "These headers were pulled from tables"
|
||||
<< " that returned minimum values."
|
||||
<< std::endl;
|
||||
int zeroes=0;
|
||||
int num_zeroes=0;
|
||||
while(table_it != tables.end()) {
|
||||
if(agn::is_zero(*table_it)) {
|
||||
zeroreport << " "
|
||||
<< table_it->header[0]
|
||||
<< std::endl;
|
||||
zeroes++;
|
||||
num_zeroes++;
|
||||
table_it = tables.erase(table_it);
|
||||
continue;
|
||||
}
|
||||
@ -48,7 +48,7 @@ int main(int argc, char const *argv[]) {
|
||||
table_it++;
|
||||
}
|
||||
std::cout << "Removed "
|
||||
<< zeroes
|
||||
<< num_zeroes
|
||||
<< " tables from the list because"
|
||||
<< " they had zero value."
|
||||
<< std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user