Skip to content

Commit

Permalink
TEST: trying to figure out instability
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjridley committed Dec 15, 2023
1 parent 7047b22 commit afaa5e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/solver_coriolis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ std::vector<arma_cube> coriolis(std::vector<arma_cube> velocity,
precision_t rotation_rate,
arma_cube lat_scgc) {
std::vector<arma_cube> coriolis_vec(3);
coriolis_vec[0] =
2 * rotation_rate * velocity[1] % sin(lat_scgc) -
2 * rotation_rate * velocity[2] % cos(lat_scgc);
coriolis_vec[0] = (
2 * rotation_rate * velocity[1] % sin(lat_scgc)); // -
//2 * rotation_rate * velocity[2] % cos(lat_scgc) );
coriolis_vec[1] = -2 * rotation_rate * velocity[0] % sin(lat_scgc);
coriolis_vec[2] = 2 * rotation_rate * cos(lat_scgc) % velocity[1];
coriolis_vec[2] = 2 * rotation_rate * cos(lat_scgc) % velocity[1] * 0.0;
return coriolis_vec;
}

0 comments on commit afaa5e8

Please sign in to comment.