Ian Jauslin
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/constants.cpp17
-rw-r--r--src/driving.c16
-rw-r--r--src/driving.h16
-rw-r--r--src/init.c16
-rw-r--r--src/init.h16
-rw-r--r--src/int_tools.c16
-rw-r--r--src/int_tools.h16
-rw-r--r--src/io.c16
-rw-r--r--src/io.h16
-rw-r--r--src/main.c16
-rw-r--r--src/navier-stokes.c16
-rw-r--r--src/navier-stokes.h16
-rw-r--r--src/statistics.c16
-rw-r--r--src/statistics.h16
14 files changed, 225 insertions, 0 deletions
diff --git a/src/constants.cpp b/src/constants.cpp
index 60bc3b8..bc49a04 100644
--- a/src/constants.cpp
+++ b/src/constants.cpp
@@ -1,3 +1,20 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+
#define COMMAND_UK 1
#define COMMAND_ENSTROPHY 2
#define COMMAND_QUIET 3
diff --git a/src/driving.c b/src/driving.c
index 527a37d..d948cda 100644
--- a/src/driving.c
+++ b/src/driving.c
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#include "driving.h"
#include "navier-stokes.h"
#include "io.h"
diff --git a/src/driving.h b/src/driving.h
index 05523c0..75f9a8f 100644
--- a/src/driving.h
+++ b/src/driving.h
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#ifndef DRIVING_H
#define DRIVING_H
diff --git a/src/init.c b/src/init.c
index cc482da..bcc5a2d 100644
--- a/src/init.c
+++ b/src/init.c
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#include "init.h"
#include "navier-stokes.h"
#include "io.h"
diff --git a/src/init.h b/src/init.h
index 387ccc3..c1c54ab 100644
--- a/src/init.h
+++ b/src/init.h
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#ifndef INIT_H
#define INIT_H
diff --git a/src/int_tools.c b/src/int_tools.c
index 13e2cf9..f2f2dcc 100644
--- a/src/int_tools.c
+++ b/src/int_tools.c
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#include <math.h>
#include "int_tools.h"
diff --git a/src/int_tools.h b/src/int_tools.h
index ab008f6..ac1b797 100644
--- a/src/int_tools.h
+++ b/src/int_tools.h
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#ifndef INTTOOLS_H
#define INTTOOLS_H
diff --git a/src/io.c b/src/io.c
index c01f0c9..fd05679 100644
--- a/src/io.c
+++ b/src/io.c
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/io.h b/src/io.h
index 99fd84d..2d7fd89 100644
--- a/src/io.h
+++ b/src/io.h
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#ifndef IO_H
#define IO_H
diff --git a/src/main.c b/src/main.c
index f2118a3..e32569c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#define VERSION "0.1"
#include <math.h>
diff --git a/src/navier-stokes.c b/src/navier-stokes.c
index fa4be10..b5fe7c7 100644
--- a/src/navier-stokes.c
+++ b/src/navier-stokes.c
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#include "constants.cpp"
#include "io.h"
#include "navier-stokes.h"
diff --git a/src/navier-stokes.h b/src/navier-stokes.h
index afb5b4b..aa02d8a 100644
--- a/src/navier-stokes.h
+++ b/src/navier-stokes.h
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#ifndef NAVIERSTOKES_H
#define NAVIERSTOKES_H
diff --git a/src/statistics.c b/src/statistics.c
index a35d1e2..2acfca4 100644
--- a/src/statistics.c
+++ b/src/statistics.c
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#include "statistics.h"
// run this at each step to compute the running average
diff --git a/src/statistics.h b/src/statistics.h
index cc344d1..ace97c5 100644
--- a/src/statistics.h
+++ b/src/statistics.h
@@ -1,3 +1,19 @@
+/*
+Copyright 2017-2023 Ian Jauslin
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
#ifndef STATISTICS_H
#define STATISTICS_H