Add command to print the enstrophy of the initial condition
This commit is contained in:
@@ -297,6 +297,25 @@ int enstrophy(
|
||||
return(0);
|
||||
}
|
||||
|
||||
// compute enstrophy, alpha for the initial condition (useful for debugging)
|
||||
int enstrophy_print_init(
|
||||
int K1,
|
||||
int K2,
|
||||
double L,
|
||||
_Complex double* u0,
|
||||
_Complex double* g
|
||||
){
|
||||
double alpha, enstrophy, energy;
|
||||
|
||||
alpha=compute_alpha(u0, K1, K2, g, L);
|
||||
enstrophy=compute_enstrophy(u0, K1, K2, L);
|
||||
energy=compute_energy(u0, K1, K2);
|
||||
|
||||
// print
|
||||
printf("% .15e % .15e % .15e\n", alpha, energy, enstrophy);
|
||||
return(0);
|
||||
}
|
||||
|
||||
// compute solution as a function of time, but do not print anything (useful for debugging)
|
||||
int quiet(
|
||||
int K1,
|
||||
|
||||
Reference in New Issue
Block a user