Use 'enstrophy' instead of energy, and print enstrophy*alpha
This commit is contained in:
@@ -84,8 +84,8 @@ int uk(
|
||||
return(0);
|
||||
}
|
||||
|
||||
// compute energy, enstrophy, alpha as a function of time in the I-NS equation
|
||||
int eea(
|
||||
// compute enstrophy, alpha as a function of time
|
||||
int enstrophy(
|
||||
int K1,
|
||||
int K2,
|
||||
int N1,
|
||||
@@ -179,7 +179,7 @@ int eea(
|
||||
fprintf(savefile," -p \"%s;starting_time=%lu;nsteps=%lu;init=file:%s\"", params, t+1, (nsteps+starting_time < t+1 ? 0 : nsteps+starting_time-t-1), savefile_string);
|
||||
free(params);
|
||||
}
|
||||
fprintf(savefile," energy\n");
|
||||
fprintf(savefile," enstrophy\n");
|
||||
|
||||
// save final u to savefile
|
||||
if(savefile==stderr || savefile==stdout){
|
||||
|
||||
Reference in New Issue
Block a user