Skip to content

Commit

Permalink
Issue #10: Cray CC doesn't like list initializers with one element. R…
Browse files Browse the repository at this point in the history
…ewrote to slightly less nice (1,element) vector constructor
  • Loading branch information
jamesavery committed Nov 10, 2023
1 parent 0910cce commit 20bb7a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/c++/planargraph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ face_t PlanarGraph::get_face_oriented(const dedge_t &e, int Fmax) const

int i=0;
node_t u = e.first, v=e.second;
face_t f = vector<int>{{u}};
face_t f = vector<int>{1,u};

while(v!=e.first){
node_t w = prev(v,u); // Previous neighbour to u in v defines corner u-v-w in face
Expand Down
2 changes: 1 addition & 1 deletion src/c++/spiralc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ spiral_nomenclature::spiral_nomenclature(const string &str) : naming_scheme(CAGE
if (suffix == "fullerene"){
naming_scheme = FULLERENE;
base_face_degree = 6;
face_degrees = vector<int>{{5}};
face_degrees = vector<int>(1,5);
}

if(suffix == "fulleroid"){
Expand Down
2 changes: 1 addition & 1 deletion src/c++/triangulation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ void Triangulation::symmetry_information(int N_generators, Graph& coxeter_diagra

vector<int> draw_path(int major, int minor)
{
if(minor == 0) return {{major}};
if(minor == 0) return {1,major};

int slope = major/minor, slope_remainder = major%minor, slope_accumulator = 0;

Expand Down

0 comments on commit 20bb7a4

Please sign in to comment.