Skip to content

Commit

Permalink
feat: rough paper hpp to print size of gridboxes and superdroplets
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Jun 21, 2024
1 parent eece61d commit 94615ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roughpaper/cleotypes_sizes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ struct Superdrop2 {
};

struct SuperdropAttrs2 {
SoluteProperties solute;
uint64_t xi;
double radius;
double msol;
SoluteProperties solute;
};

void print_type_sizes(int argc, char *argv[]) {
Expand Down Expand Up @@ -97,7 +97,7 @@ void print_type_sizes(int argc, char *argv[]) {
std::cout << "\nSDAttrs: " << sizeof(SuperdropAttrs) << "\n";
std::cout << "re-ordered SDAttrs: " << sizeof(SuperdropAttrs2) << "\n";
std::cout << "no padding: " << sizeof(uint64_t) + 2 * sizeof(double) + sizeof(SoluteProperties)
<< " <- is solute actually 8 bytes?? \n";
<< "\n";
std::cout << " xi: " << sizeof(uint64_t) << "\n";
std::cout << " radius: " << sizeof(double) << "\n";
std::cout << " msol: " << sizeof(double) << "\n";
Expand Down

0 comments on commit 94615ff

Please sign in to comment.