diff --git a/source/world_builder/features/continental_plate.cc b/source/world_builder/features/continental_plate.cc index 09fa5d48f..1819a2c3f 100644 --- a/source/world_builder/features/continental_plate.cc +++ b/source/world_builder/features/continental_plate.cc @@ -186,9 +186,9 @@ namespace WorldBuilder min_depth_local, max_depth_local); - WBAssert(!std::isnan(output[entry_in_output[i_property]]), "Temparture is not a number: " << output[entry_in_output[i_property]] + WBAssert(!std::isnan(output[entry_in_output[i_property]]), "Temperature is not a number: " << output[entry_in_output[i_property]] << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); - WBAssert(std::isfinite(output[entry_in_output[i_property]]), "Temparture is not a finite: " << output[entry_in_output[i_property]] + WBAssert(std::isfinite(output[entry_in_output[i_property]]), "Temperature is not a finite: " << output[entry_in_output[i_property]] << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); } diff --git a/source/world_builder/features/continental_plate_models/temperature/linear.cc b/source/world_builder/features/continental_plate_models/temperature/linear.cc index 9244eb5ac..2f47c2470 100644 --- a/source/world_builder/features/continental_plate_models/temperature/linear.cc +++ b/source/world_builder/features/continental_plate_models/temperature/linear.cc @@ -134,9 +134,9 @@ namespace WorldBuilder (depth - min_depth_local) * ((bottom_temperature_local - top_temperature_local) / (max_depth_local_local - min_depth_local_local)); - WBAssert(!std::isnan(new_temperature), "Temparture is not a number: " << new_temperature + WBAssert(!std::isnan(new_temperature), "Temperature is not a number: " << new_temperature << ", based on a temperature model with the name " << this->name); - WBAssert(std::isfinite(new_temperature), "Temparture is not a finite: " << new_temperature + WBAssert(std::isfinite(new_temperature), "Temperature is not a finite: " << new_temperature << ", based on a temperature model with the name " << this->name << ", top_temperature_local = " << top_temperature_local << ", depth = " << depth << ", min_depth_local = " << min_depth_local << ", bottom_temperature_local= " << bottom_temperature_local << ", top_temperature_local=" << top_temperature_local diff --git a/source/world_builder/features/fault.cc b/source/world_builder/features/fault.cc index 4d2a0228f..988dbfff5 100644 --- a/source/world_builder/features/fault.cc +++ b/source/world_builder/features/fault.cc @@ -525,7 +525,7 @@ namespace WorldBuilder WBAssert(!std::isnan(temperature_current_section), "Temperature is not a number: " << temperature_current_section << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); - WBAssert(std::isfinite(temperature_current_section), "Temparture is not finite: " << temperature_current_section + WBAssert(std::isfinite(temperature_current_section), "Temperature is not finite: " << temperature_current_section << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); } @@ -543,7 +543,7 @@ namespace WorldBuilder WBAssert(!std::isnan(temperature_next_section), "Temperature is not a number: " << temperature_next_section << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); - WBAssert(std::isfinite(temperature_next_section), "Temparture is not a finite: " << temperature_next_section + WBAssert(std::isfinite(temperature_next_section), "Temperature is not a finite: " << temperature_next_section << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); } diff --git a/source/world_builder/features/mantle_layer.cc b/source/world_builder/features/mantle_layer.cc index 7ac9b9520..86a7acabb 100644 --- a/source/world_builder/features/mantle_layer.cc +++ b/source/world_builder/features/mantle_layer.cc @@ -178,9 +178,9 @@ namespace WorldBuilder min_depth_local, max_depth_local); - WBAssert(!std::isnan(output[entry_in_output[i_property]]), "Temparture is not a number: " << output[entry_in_output[i_property]] + WBAssert(!std::isnan(output[entry_in_output[i_property]]), "Temperature is not a number: " << output[entry_in_output[i_property]] << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); - WBAssert(std::isfinite(output[entry_in_output[i_property]]), "Temparture is not a finite: " << output[entry_in_output[i_property]] + WBAssert(std::isfinite(output[entry_in_output[i_property]]), "Temperature is not a finite: " << output[entry_in_output[i_property]] << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); } diff --git a/source/world_builder/features/oceanic_plate.cc b/source/world_builder/features/oceanic_plate.cc index 9996efe35..5b2b01046 100644 --- a/source/world_builder/features/oceanic_plate.cc +++ b/source/world_builder/features/oceanic_plate.cc @@ -181,9 +181,9 @@ namespace WorldBuilder min_depth_local, max_depth_local); - WBAssert(!std::isnan(output[entry_in_output[i_property]]), "Temparture is not a number: " << output[entry_in_output[i_property]] + WBAssert(!std::isnan(output[entry_in_output[i_property]]), "Temperature is not a number: " << output[entry_in_output[i_property]] << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); - WBAssert(std::isfinite(output[entry_in_output[i_property]]), "Temparture is not a finite: " << output[entry_in_output[i_property]] + WBAssert(std::isfinite(output[entry_in_output[i_property]]), "Temperature is not a finite: " << output[entry_in_output[i_property]] << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); } diff --git a/source/world_builder/features/oceanic_plate_models/temperature/plate_model.cc b/source/world_builder/features/oceanic_plate_models/temperature/plate_model.cc index 962fa85fe..06e829edb 100644 --- a/source/world_builder/features/oceanic_plate_models/temperature/plate_model.cc +++ b/source/world_builder/features/oceanic_plate_models/temperature/plate_model.cc @@ -180,14 +180,14 @@ namespace WorldBuilder } - WBAssert(!std::isnan(temperature), "Temparture inside plate model is not a number: " << temperature + WBAssert(!std::isnan(temperature), "Temperature inside plate model is not a number: " << temperature << ". Relevant variables: bottom_temperature_local = " << bottom_temperature_local << ", top_temperature = " << top_temperature << ", max_depth = " << max_depth << ", spreading_velocity = " << ridge_parameters.first << ", thermal_diffusivity = " << thermal_diffusivity << ", age = " << age << '.'); - WBAssert(std::isfinite(temperature), "Temparture inside plate model is not a finite: " << temperature << ". Relevant variables: bottom_temperature_local = " << bottom_temperature_local + WBAssert(std::isfinite(temperature), "Temperature inside plate model is not a finite: " << temperature << ". Relevant variables: bottom_temperature_local = " << bottom_temperature_local << ", top_temperature = " << top_temperature << ", spreading_velocity = " << ridge_parameters.first << ", thermal_diffusivity = " << thermal_diffusivity diff --git a/source/world_builder/features/oceanic_plate_models/temperature/plate_model_constant_age.cc b/source/world_builder/features/oceanic_plate_models/temperature/plate_model_constant_age.cc index 81040d2b7..263a57374 100644 --- a/source/world_builder/features/oceanic_plate_models/temperature/plate_model_constant_age.cc +++ b/source/world_builder/features/oceanic_plate_models/temperature/plate_model_constant_age.cc @@ -137,13 +137,13 @@ namespace WorldBuilder std::exp(-1.0 * i * i * Consts::PI * Consts::PI * thermal_diffusivity * plate_age / (max_depth * max_depth))); } - WBAssert(!std::isnan(temperature), "Temparture inside plate model constant age is not a number: " << temperature + WBAssert(!std::isnan(temperature), "Temperature inside plate model constant age is not a number: " << temperature << ". Relevant variables: bottom_temperature_local = " << bottom_temperature_local << ", top_temperature = " << top_temperature << ", max_depth = " << max_depth << ", thermal_diffusivity = " << thermal_diffusivity << ", age = " << plate_age << '.'); - WBAssert(std::isfinite(temperature), "Temparture inside plate model constant age is not a finite: " << temperature << ". Relevant variables: bottom_temperature_local = " << bottom_temperature_local + WBAssert(std::isfinite(temperature), "Temperature inside plate model constant age is not a finite: " << temperature << ". Relevant variables: bottom_temperature_local = " << bottom_temperature_local << ", top_temperature = " << top_temperature << ", thermal_diffusivity = " << thermal_diffusivity << ", age = " << plate_age << '.'); diff --git a/source/world_builder/features/plume.cc b/source/world_builder/features/plume.cc index 72fd244e2..e631113f9 100644 --- a/source/world_builder/features/plume.cc +++ b/source/world_builder/features/plume.cc @@ -300,9 +300,9 @@ namespace WorldBuilder min_depth, max_depth); - WBAssert(!std::isnan(output[entry_in_output[i_property]]), "Temparture is not a number: " << output[entry_in_output[i_property]] + WBAssert(!std::isnan(output[entry_in_output[i_property]]), "Temperature is not a number: " << output[entry_in_output[i_property]] << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); - WBAssert(std::isfinite(output[entry_in_output[i_property]]), "Temparture is not finite: " << output[entry_in_output[i_property]] + WBAssert(std::isfinite(output[entry_in_output[i_property]]), "Temperature is not finite: " << output[entry_in_output[i_property]] << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); } diff --git a/source/world_builder/features/subducting_plate.cc b/source/world_builder/features/subducting_plate.cc index ab4f6ab52..615adb9cb 100644 --- a/source/world_builder/features/subducting_plate.cc +++ b/source/world_builder/features/subducting_plate.cc @@ -542,9 +542,9 @@ namespace WorldBuilder distance_from_planes, additional_parameters); - WBAssert(!std::isnan(temperature_current_section), "Temparture is not a number: " << temperature_current_section + WBAssert(!std::isnan(temperature_current_section), "Temperature is not a number: " << temperature_current_section << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); - WBAssert(std::isfinite(temperature_current_section), "Temparture is not a finite: " << temperature_current_section + WBAssert(std::isfinite(temperature_current_section), "Temperature is not a finite: " << temperature_current_section << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); } @@ -560,9 +560,9 @@ namespace WorldBuilder distance_from_planes, additional_parameters); - WBAssert(!std::isnan(temperature_next_section), "Temparture is not a number: " << temperature_next_section + WBAssert(!std::isnan(temperature_next_section), "Temperature is not a number: " << temperature_next_section << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); - WBAssert(std::isfinite(temperature_next_section), "Temparture is not a finite: " << temperature_next_section + WBAssert(std::isfinite(temperature_next_section), "Temperature is not a finite: " << temperature_next_section << ", based on a temperature model with the name " << temperature_model->get_name() << ", in feature " << this->name); }