Opened 17 years ago
Closed 16 years ago
#71 closed enhancement (fixed)
laplace example: inputs
| Reported by: | Stephen Siegel | Owned by: | zirkel |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | examples | Version: | 1.0 |
| Keywords: | laplace, input, "initial value" | Cc: |
Description
The laplace example is looking good. But instead of initializing the values of the function to 0.0 on the interior and 10.0 on the boundary, why not make all of the initial values an input to the program. That would be much more general. That means adding an input variable like
input real[ny][nx] initialValues;
Do this in both sequential and parallel versions. Use these values to set the initial values.
Also, instead of copying all the values between old, new, and tmp, instead use a single 3-d array and a mod-2 counter to accomplish the same thing.
Change History (2)
comment:1 by , 17 years ago
| Status: | new → accepted |
|---|
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.

The laplace example is not quite working yet, but this part is done.