- Developments in flood forecasting science, Hannah Cloke
- Flood Forecasting Centre – 10 years of operations, learning and a view to the future, Charlie Pilling
- Tackling uncertainty in flood forecasting, Leonore Boelee
- A global perspective on developments in operational flood forecasting systems, with emphasis on the management of uncertainties, Jan Verkade
- Establishing the national flood forecasting and warning service in Ireland, Matthew Roberts
- The feasibility of future flood warning systems on the Isle of Man, Gemma Toher
- [Flood forecasting and warning developments in Scotland, Pascal Lardet](http://www.hydrology.org
View AssertJExceptionsTest.java
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
import org.junit.jupiter.api.Test; | |
import static org.assertj.core.api.Assertions.assertThat; | |
import static org.assertj.core.api.Assertions.assertThatExceptionOfType; | |
import static org.assertj.core.api.Assertions.assertThatThrownBy; | |
import static org.assertj.core.api.Assertions.catchThrowableOfType; | |
import static org.assertj.core.api.InstanceOfAssertFactories.type; | |
public class AssertJExceptionsTest { | |
private final Properties properties = new Properties(); |
View destroy-awscdk.sh
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
# https://github.com/aws/aws-cdk/issues/986#issuecomment-644602463 | |
cdk destroy | |
aws s3 rm --recursive s3://$(aws s3 ls | grep cdktoolkit | cut -d' ' -f3) | |
aws cloudformation delete-stack --stack-name CDKToolkit |
View install-awscli.sh
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
# download and install to $HOME/bin | |
# https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html | |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" | |
unzip awscliv2.zip | |
cd awscliv2 && ./install -i $HOME/aws-cli -b $HOME/bin | |
# or update an existing installation: | |
# cd awscliv2 && ./install -i $HOME/aws-cli -b $HOME/bin --update | |
# enable bash autocompletion | |
# https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-completion.html#cli-command-completion-configure |
View structexample.c
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
#include "stdio.h" | |
#include "stdlib.h" | |
typedef double real; | |
struct SolverParams | |
{ | |
real dt; | |
real tolh; | |
real end_time; |
View doubletexture.cu
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
// inspired by https://devtalk.nvidia.com/default/topic/419190/texture-fetching-for-double-precision-floats/ | |
#include <cuda.h> | |
#include <cuda_runtime_api.h> | |
#include <cstdio> | |
#define cudaCheckErrors(ans) { gpuAssert((ans), __FILE__, __LINE__); } | |
inline void gpuAssert(cudaError_t code, const char *file, int line) | |
{ | |
if (code != cudaSuccess) | |
{ |
View presentations.md
View timer.cpp
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
// adapted from https://stackoverflow.com/a/32241080/150884 | |
#include <chrono> | |
#include <iostream> | |
using Clock = std::chrono::high_resolution_clock; | |
auto t1 = Clock::now(); | |
// do stuff | |
auto t2 = Clock::now(); |
View rotation.C
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
#include "quaternion.H" | |
#include "transform.H" | |
int main(int argc, char *argv[]) | |
{ | |
const quaternion q(rotationTensor(vector(-1, 0, 0), vector(1, 0, 0))); | |
Info << q.transform(vector(0, 0, 0.5)) << endl; | |
} |
View face-area.py
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
#!/usr/bin/env python3 | |
import math | |
import numpy as np | |
import numpy.linalg as la | |
def herons_area(v1, v2, v3): | |
a = la.norm(v2 - v1) | |
b = la.norm(v3 - v2) | |
c = la.norm(v1 - v3) | |
p = 0.5*(a+b+c) |
View faceVertexFace.C
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
#include "fvCFD.H" | |
using namespace fv; | |
int main(int argc, char *argv[]) | |
{ | |
# include "setRootCase.H" | |
# include "createTime.H" | |
# include "createMesh.H" |
NewerOlder