Skip to content

Conversation

Gathros
Copy link
Contributor

@Gathros Gathros commented Jul 28, 2018

No description provided.

@Gathros Gathros added the Implementation This provides an implementation for an algorithm. (Code and maybe md files are edited.) label Jul 28, 2018
Copy link
Member

@berquist berquist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a problem with the book:

diff --git a/contents/quantum_systems/quantum_systems.md b/contents/quantum_systems/quantum_systems.md index 300e4ce..dfbaf34 100644 --- a/contents/quantum_systems/quantum_systems.md +++ b/contents/quantum_systems/quantum_systems.md @@ -228,7 +228,7 @@ This ultimately looks like this: {% sample lang="jl" %} [import, lang:"julia"](code/julia/energy.jl) {% sample lang="c" %} -[import:28-, lang:"c_cpp"](code/julia/energy.jl) +[import:28-, lang:"c_cpp"](code/c/energy.c) {% endmethod %} This calculation will be used in many different simulations of quantum systems to check our results.
double xmax;
int res;
double dt;
int timesteps;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes more physical sense for this to be unsigned.


struct params {
double xmax;
int res;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't make physical sense for the resolution to be signed.

@leios
Copy link
Member

leios commented Aug 5, 2018

The implementation for split-op seems fine here; however, because we are using the fftw library, would you mind adding in a comment at the top of the file with compilation instructions (or maybe even in the text above the codeblock, but within the C-language method).

leios
leios previously approved these changes Aug 5, 2018
Copy link
Member

@leios leios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a clean implementation

@leios leios merged commit 2fa7a20 into algorithm-archivists:master Aug 5, 2018
@Gathros Gathros deleted the c-split-op branch August 5, 2018 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Implementation This provides an implementation for an algorithm. (Code and maybe md files are edited.)

3 participants