Skip to content

Instantly share code, notes, and snippets.

@miho
Last active December 17, 2017 22:30
Show Gist options
  • Save miho/d30229df7bd160fed9a31b087e2c1fe7 to your computer and use it in GitHub Desktop.
Save miho/d30229df7bd160fed9a31b087e2c1fe7 to your computer and use it in GitHub Desktop.
package eu.mihosoft.vrl.user;
@ComponentInfo(name="HeatDiscretization1DTemplate", category="Custom")
public class HeatDiscretization1DTemplate implements java.io.Serializable {
private static final long serialVersionUID=1L;
@OutputInfo(name="Results:", style="multi-out",
elemTypes=[VectorRhsODEInterface.class, JacobianInputInterface.class, double[].class],
elemNames=["f", "Df", "u0"]
)
public Object[] discretize(
@ParamInfo(name="x1", style="default", options="") double x1,
@ParamInfo(name="xn", style="default", options="") double xn,
@ParamInfo(name="n", style="default", options="") int n,
@ParamInfo(name="a", style="default", options="") double a,
@ParamInfo(name="b", style="default", options="") double b
) {
// TODO provide an implementation
return [f,jacobian, u0]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment