cogenda / Genius-TCAD-Open

Open-source version of the Genius Semiconductor Device Simulator
http://www.cogenda.com
Other
117 stars 68 forks source link

Unable to copy brkpnts.h #12

Open thecrystallineentity opened 12 years ago

thecrystallineentity commented 12 years ago

I'm using cygwin, build failed with the message "Unable to copy brkpnts.h" It's the exact same problem that nsheppard had 6 months ago, but I have no idea what i'm doing, so I'll need really simple instructions on how to fix it. Thanks

nsheppard commented 12 years ago

These changes to the Asymptotic function in brkpnts.c, suggested by a friend, worked for me.

double v1,v2; double Asymptotic(FUNC func1, FUNC func2, double x, double dx) { while (1) { if (fabs(dx/x) <= PRECISION) return(x); while ((v1=func1(x)) != (v2=func2(x))) x += dx; dx = -0.1; if (fabs(dx/x) <= PRECISION) return(x); while ((v1=func1(x)) == (v2=func2(x))) x += dx; dx = -0.1; } }

leadant commented 11 years ago

To make it working under cygwin, you have to add support for the CYGWIN in the wscript files similar as the AIX.

Revise the if..else.. for different platforms in $GENIUS/wscript, $GENIUS/src/material and $GENIUS/src/hook. You have also to remove the gummel_monitor_hook.cc in line 5 of $GENIUS/src/hook/wscript, which does not exist.

Besides, you may have to rename the shared material library to be e.g. libSi.so rather than libSi.dll or other weird name automatically generated by waf.

It seems working for me now under Windows7

cogenda commented 11 years ago

Nice to know that you could make it work under cygwin, but actually you don't need CYGWIN to compile it under windows. You can simply use MSVC to compile it.

regards, shenchen

On 2012-12-05 05:48, leadant wrote:

To make it working under cygwin, you have to add support for the CYGWIN in the wscript files similar as the AIX.

Revise the if..else.. for different platforms in $GENIUS/wscript, $GENIUS/src/material and $GENIUS/src/hook. You have also to remove the gummel_monitor_hook.cc in line 5 of $GENIUS/src/hook/wscript, which does not exist.

Besides, you may have to rename the shared material library to be e.g. libSi.so rather than libSi.dll or other weird name automatically generated by waf.

It seems working for me now under Windows7

Reply to this email directly or view it on GitHub [1].

Links:

[1] https://github.com/cogenda/Genius-TCAD-Open/issues/12#issuecomment-11017219