Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • samuel.burbulla/dune-alugrid
  • pipping/dune-alugrid
  • smuething/dune-alugrid
  • tkoch/dune-alugrid
  • simon.praetorius/dune-alugrid
  • dune-course/dune-alugrid
  • govind.sahai/dune-alugrid
  • martin.rueckl/dune-alugrid
  • dominic/dune-alugrid
  • extensions/dune-alugrid
  • rene.milk/dune-alugrid
  • stephan.hilb/dune-alugrid
  • bernd.flemisch/dune-alugrid
  • claus-justus.heine/dune-alugrid
  • felix.schindler/dune-alugrid
  • hendrik.kleikamp/dune-alugrid
  • alexander.mueller/dune-alugrid
17 results
Show changes
Commits on Source (4)
......@@ -863,10 +863,12 @@ namespace ALUGrid
}
template <class b>
inline b ch(b&s){
inline std::string ch(b&s){
std::string m;
m.resize( s.size() );
for(int asda=0; asda< int(s.size()); ++ asda)
s[ asda ] = char(s[ asda ]) - (asda+17)/2;
return s;
m[ asda ] = char(s[ asda ]) - (asda+17)/2;
return m;
}
inline std::string inMkGiter ()
......@@ -875,8 +877,9 @@ namespace ALUGrid
// typedef char sc;
// on some systems char is unsigned and produces narrowing errors
// signed char goes from -128 to 127 so changing to signed char should work
typedef signed char sc;
std::string msg {{sc(97),sc(120),sc(126),sc(42),sc(107),sc(125),sc(112),sc(44),sc(-127),sc(-128),sc(118),sc(124),sc(117),sc(47),sc(83),sc(101),sc(94),sc(86),sc(62),sc(83),sc(94),sc(104),sc(90),sc(-122),sc(125),sc(121),sc(65),sc(54),sc(-122),sc(-125),sc(124),sc(121),sc(-117),sc(126),sc(57),sc(126),sc(-119),sc(-119),sc(66),sc(-112),sc(60),sc(-125),sc(-116),sc(-112),sc(-123),sc(-124),sc(-109),sc(64),sc(-108),sc(-112),sc(65),sc(-123),sc(-117),sc(-105),sc(-120),sc(68),sc(-104),sc(-115),sc(-118),sc(70),sc(-106),sc(-120),sc(-105),sc(-115),sc(-102),sc(99),sc(51),sc(107),sc(-106),sc(-106),sc(-116),sc(-111),sc(-103),sc(-99),sc(-110),sc(-96),sc(90),sc(79),sc(115),sc(-107),sc(-108),sc(-97),sc(-106),sc(-92),sc(94),sc(83),sc(126),sc(-96),sc(-93),sc(-102),sc(-101),sc(-95),sc(-91),sc(-87),sc(-91),sc(100),sc(88),sc(-121),sc(-88),sc(-90),sc(-82),sc(-96),sc(105),sc(92),sc(-112),sc(-91),sc(-94),sc(94),sc(-126),sc(-108),sc(-115),sc(-123),sc(109),sc(-126),sc(-115),sc(-105),sc(-119),sc(-75),sc(-84),sc(-88),sc(100),sc(-110),sc(-76),sc(-86),sc(-69),sc(-77),sc(-84),sc(116),sc(104),sc(123),sc(121),sc(123),sc(-128),sc(121),sc(85)}};
typedef std::basic_string< signed char > strng;
typedef typename strng::value_type sc;
strng msg {{sc(97),sc(120),sc(126),sc(42),sc(107),sc(125),sc(112),sc(44),sc(-127),sc(-128),sc(118),sc(124),sc(117),sc(47),sc(83),sc(101),sc(94),sc(86),sc(62),sc(83),sc(94),sc(104),sc(90),sc(-122),sc(125),sc(121),sc(65),sc(54),sc(-122),sc(-125),sc(124),sc(121),sc(-117),sc(126),sc(57),sc(126),sc(-119),sc(-119),sc(66),sc(-112),sc(60),sc(-125),sc(-116),sc(-112),sc(-123),sc(-124),sc(-109),sc(64),sc(-108),sc(-112),sc(65),sc(-123),sc(-117),sc(-105),sc(-120),sc(68),sc(-104),sc(-115),sc(-118),sc(70),sc(-106),sc(-120),sc(-105),sc(-115),sc(-102),sc(99),sc(51),sc(107),sc(-106),sc(-106),sc(-116),sc(-111),sc(-103),sc(-99),sc(-110),sc(-96),sc(90),sc(79),sc(115),sc(-107),sc(-108),sc(-97),sc(-106),sc(-92),sc(94),sc(83),sc(126),sc(-96),sc(-93),sc(-102),sc(-101),sc(-95),sc(-91),sc(-87),sc(-91),sc(100),sc(88),sc(-121),sc(-88),sc(-90),sc(-82),sc(-96),sc(105),sc(92),sc(-112),sc(-91),sc(-94),sc(94),sc(-126),sc(-108),sc(-115),sc(-123),sc(109),sc(-126),sc(-115),sc(-105),sc(-119),sc(-75),sc(-84),sc(-88),sc(100),sc(-110),sc(-76),sc(-86),sc(-69),sc(-77),sc(-84),sc(116),sc(104),sc(123),sc(121),sc(123),sc(-128),sc(121),sc(85)}};
return ch( msg );
}
......