Skip to content

Commit fd79437

Browse files
committed
in ValueAtPoints constructions I accedantally used doubles instead of ints and some compilers warn about it. Used nvim telescope to find, then ctrl+Q to send it to a quicklist and :cfdo %/, 2.)/,2)/g | update to fix them automatically. This seems to have worked well.
1 parent 4422991 commit fd79437

33 files changed

+66
-66
lines changed

source/world_builder/features/continental_plate.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ namespace WorldBuilder
8181

8282
prm.declare_entry("", Types::Object(required_entries), "Continental plate object. Requires properties `model` and `coordinates`.");
8383

84-
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),Types::Array(Types::ValueAtPoints(0., 2.))),
84+
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),Types::Array(Types::ValueAtPoints(0.,2))),
8585
"The depth from which this feature is present");
86-
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(), 2.))),
86+
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(),2))),
8787
"The depth to which this feature is present");
8888
prm.declare_entry("temperature models",
8989
Types::PluginSystem("", Features::ContinentalPlateModels::Temperature::Interface::declare_entries, {"model"}),

source/world_builder/features/continental_plate_models/composition/random.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ namespace WorldBuilder
6666

6767
// Declare entries of this plugin
6868
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),
69-
Types::Array(Types::ValueAtPoints(0., 2.)),
69+
Types::Array(Types::ValueAtPoints(0.,2)),
7070
Types::String("")),
7171
"The depth in meters from which the composition of this feature is present.");
7272

7373
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),
74-
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(), 2.)),
74+
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(),2)),
7575
Types::String("")),
7676
"The depth in meters to which the composition of this feature is present.");
7777

source/world_builder/features/continental_plate_models/composition/uniform.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ namespace WorldBuilder
6363

6464
// Declare entries of this plugin
6565
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),
66-
Types::Array(Types::ValueAtPoints(0., 2.)),
66+
Types::Array(Types::ValueAtPoints(0.,2)),
6767
Types::String("")),
6868
"The depth in meters from which the composition of this feature is present.");
6969

7070
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),
71-
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(), 2.)),
71+
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(),2)),
7272
Types::String("")),
7373
"The depth in meters to which the composition of this feature is present.");
7474

source/world_builder/features/continental_plate_models/grains/random_uniform_distribution.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ namespace WorldBuilder
6565

6666
// Declare entries of this plugin
6767
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),
68-
Types::Array(Types::ValueAtPoints(0., 2.)),
68+
Types::Array(Types::ValueAtPoints(0.,2)),
6969
Types::String("")),
7070
"The depth in meters from which the composition of this feature is present.");
7171

7272
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),
73-
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(), 2.)),
73+
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(),2)),
7474
Types::String("")),
7575
"The depth in meters to which the composition of this feature is present.");
7676

source/world_builder/features/continental_plate_models/grains/random_uniform_distribution_deflected.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ namespace WorldBuilder
6464

6565
// Declare entries of this plugin
6666
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),
67-
Types::Array(Types::ValueAtPoints(0., 2.)),
67+
Types::Array(Types::ValueAtPoints(0.,2)),
6868
Types::String("")),
6969
"The depth in meters from which the composition of this feature is present.");
7070

7171
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),
72-
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(), 2.)),
72+
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(),2)),
7373
Types::String("")),
7474
"The depth in meters to which the composition of this feature is present.");
7575

source/world_builder/features/continental_plate_models/grains/uniform.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ namespace WorldBuilder
6363

6464
// Declare entries of this plugin
6565
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),
66-
Types::Array(Types::ValueAtPoints(0., 2.)),
66+
Types::Array(Types::ValueAtPoints(0.,2)),
6767
Types::String("")),
6868
"The depth in meters from which the composition of this feature is present.");
6969

7070
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),
71-
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(), 2.)),
71+
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(),2)),
7272
Types::String("")),
7373
"The depth in meters to which the composition of this feature is present.");
7474

source/world_builder/features/continental_plate_models/temperature/adiabatic.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ namespace WorldBuilder
6464

6565
// Declare entries of this plugin
6666
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),
67-
Types::Array(Types::ValueAtPoints(0., 2.)),
67+
Types::Array(Types::ValueAtPoints(0.,2)),
6868
Types::String("")),
6969
"The depth in meters from which the composition of this feature is present.");
7070

7171
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),
72-
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(), 2.)),
72+
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(),2)),
7373
Types::String("")),
7474
"The depth in meters to which the composition of this feature is present.");
7575

source/world_builder/features/continental_plate_models/temperature/chapman.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ namespace WorldBuilder
6565
"Continental geotherm using the steady-state 1-D heat conduction equation from Chapman (1986).");
6666

6767
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),
68-
Types::Array(Types::ValueAtPoints(0., 2.)),
68+
Types::Array(Types::ValueAtPoints(0.,2)),
6969
Types::String("")),
7070
"The depth in meters from which the composition of this feature is present.");
7171

7272
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),
73-
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(), 2.)),
73+
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(),2)),
7474
Types::String("")),
7575
"The depth in meters to which the composition of this feature is present.");
7676

source/world_builder/features/continental_plate_models/temperature/linear.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ namespace WorldBuilder
6565

6666
// Declare entries of this plugin
6767
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),
68-
Types::Array(Types::ValueAtPoints(0., 2.)),
68+
Types::Array(Types::ValueAtPoints(0.,2)),
6969
Types::String("")),
7070
"The depth in meters from which the composition of this feature is present.");
7171

7272
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),
73-
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(), 2.)),
73+
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(),2)),
7474
Types::String("")),
7575
"The depth in meters to which the composition of this feature is present.");
7676

source/world_builder/features/continental_plate_models/temperature/uniform.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ namespace WorldBuilder
6262

6363
// Declare entries of this plugin
6464
prm.declare_entry("min depth", Types::OneOf(Types::Double(0),
65-
Types::Array(Types::ValueAtPoints(0., 2.)),
65+
Types::Array(Types::ValueAtPoints(0.,2)),
6666
Types::String("")),
6767
"The depth in meters from which the composition of this feature is present.");
6868

6969
prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits<double>::max()),
70-
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(), 2.)),
70+
Types::Array(Types::ValueAtPoints(std::numeric_limits<double>::max(),2)),
7171
Types::String("")),
7272
"The depth in meters to which the composition of this feature is present.");
7373

0 commit comments

Comments
 (0)