Reformat. Merge improved solvers.

This commit is contained in:
2023-11-21 05:27:11 +01:00
parent acc831e0b0
commit 2fad29b925
11 changed files with 655 additions and 176 deletions

View File

@@ -4,18 +4,17 @@
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file.
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <limits.h>
#include <float.h>
#include <limits.h>
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "parameter.h"
#include "solver.h"
int main (int argc, char** argv)
int main(int argc, char** argv)
{
int rank;
Parameter params;
@@ -25,13 +24,13 @@ int main (int argc, char** argv)
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
initParameter(&params);
if ( argc != 2 ) {
printf("Usage: %s <configFile>\n",argv[0]);
if (argc != 2) {
printf("Usage: %s <configFile>\n", argv[0]);
exit(EXIT_SUCCESS);
}
readParameter(&params, argv[1]);
if ( rank == 0 ) {
if (rank == 0) {
printParameter(&params);
}