pySDC icon indicating copy to clipboard operation
pySDC copied to clipboard

Script to write out nodes, weights, etc

Open danielru opened this issue 7 years ago • 3 comments

Where would be a good place to add a script that can be run to generate the nodes, weights, Q and S matrix for a specific type and number of nodes?

danielru avatar Jun 16 '18 04:06 danielru

Do you want such a script for all available collocation types? Or just for one? In the latter case you can just instantiate your collocation and get all parameters from the object directly. No need for a dedicated script, right?

What is your "application" for this, 5.45am in the morning?

pancetta avatar Jun 16 '18 07:06 pancetta

For all of them. I find myself frequently moving out some of the collocation classes to compute weights etc when writing small, testing codes for some new variant of SDC. Having this integrated in pySDC would make it more convenient.

Writing the script will be easy, but I was wondering where in the directory structure would be the best place to put it?

danielru avatar Jun 16 '18 08:06 danielru

I guess the best place would be https://github.com/Parallel-in-Time/pySDC/tree/master/pySDC/helpers. This is where all helper modules should go, i.e. stuff you use every now and then but which does not fit into any of the other structures.

pancetta avatar Jun 16 '18 08:06 pancetta