-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cd2103
commit e105d6d
Showing
13 changed files
with
241 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CC=gcc | ||
CSTD=-std=c11 | ||
CFLAGS=-c -Wall | ||
CWARN=-Wextra -Wpedantic | ||
SPEED=-O | ||
OMP=-fopenmp | ||
#DEBUG=-g | ||
|
||
OBJ_lorenz=lorenz.o lorenzlib.o | ||
OBJ_lorenzdiv=lorenzdiv.o lorenzlib.o | ||
ALL=lorenz lorenzdiv | ||
|
||
all: $(ALL) | ||
lorenz: $(OBJ_lorenz) | ||
$(CC) -o $@ $^ $(CSTD) $(CWARN) | ||
|
||
lorenzdiv: $(OBJ_lorenzdiv) | ||
$(CC) -o $@ $^ $(CSTD) $(OMP) | ||
|
||
%.o: %.cpp | ||
$(CC) -o $@ $< $(CSTD) $(OMP) $(CFLAGS) $(SPEED) | ||
|
||
clean: | ||
rm -rf *.o $(ALL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
//************************************************************************************************** | ||
// globals.h | ||
// COPYRIGHT (c) 2024 by Mammatuscloud | ||
// All rights reserved | ||
//************************************************************************************************** | ||
|
||
|
||
#ifndef GLOBALS_H | ||
#define GLOBALS_H 1 | ||
|
||
// global variables | ||
// general defines | ||
#define N 10000 | ||
#define DeltaT 0.01 | ||
#define DeltaT2 0.005 | ||
|
||
// model constants | ||
#define R 28.0 // Rayleigh number | ||
#define SIG 10.0 // Prandtl number | ||
#define B 8/3 // Aspekte number | ||
|
||
#endif | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//************************************************************************************************** | ||
// Lorenz Attroctor | ||
// lorenz.h | ||
// COPYRIGHT (c) 2024 by Mammatuscloud | ||
// All rights reserved | ||
//************************************************************************************************** | ||
|
||
#ifndef LORENZ_H | ||
#define LORENZ_H 1 | ||
|
||
#include "globals.h" | ||
#include "lorenzlib.h" | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
// prototypes | ||
void errofile (FILE *datei); | ||
|
||
#endif |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//************************************************************************************************** | ||
// Lorenz Attroctor Divergence | ||
// lorenzdiv.h | ||
// COPYRIGHT (c) 2024 by Mammatuscloud | ||
// All rights reserved | ||
//************************************************************************************************** | ||
|
||
#ifndef LORENZDIV_H | ||
#define LORENZDIV_H 1 | ||
|
||
#include "globals.h" | ||
#include "lorenzlib.h" | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <omp.h> | ||
|
||
// prototypes | ||
void errofile (FILE *datei); | ||
|
||
// global variables | ||
float j=0, k=0; | ||
|
||
|
||
#endif |
Binary file not shown.
Oops, something went wrong.