From bdd059806d8abc9a994dfc50026da0f3f9e21d95 Mon Sep 17 00:00:00 2001 From: vinciyan Date: Mon, 12 May 2025 10:17:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/FortranInteropService.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Services/FortranInteropService.cs b/Services/FortranInteropService.cs index 3cfcd63..7b7008d 100644 --- a/Services/FortranInteropService.cs +++ b/Services/FortranInteropService.cs @@ -36,10 +36,10 @@ namespace FortranWebApi.Services private static extern void SUB_SHUILIANGJISUAN( ref int NDATA, ref float LONG, - ref int INbd, - ref int INzd, - ref int INsm, - ref int INrough, + ref float INbd, + ref float INzd, + ref float INsm, + ref float INrough, ref float ZZ0, ref int DB, float[] UQ, @@ -75,10 +75,10 @@ namespace FortranWebApi.Services // 提取参数 int NDATA = GetIntParameter(parameters, "NDATA"); float LONG = GetFloatParameter(parameters, "LONG"); - int INbd = GetIntParameter(parameters, "INbd"); - int INzd = GetIntParameter(parameters, "INzd"); - int INsm = GetIntParameter(parameters, "INsm"); - int INrough = GetIntParameter(parameters, "INrough"); + float INbd = GetFloatParameter(parameters, "INbd"); + float INzd = GetFloatParameter(parameters, "INzd"); + float INsm = GetFloatParameter(parameters, "INsm"); + float INrough = GetFloatParameter(parameters, "INrough"); float ZZ0 = GetFloatParameter(parameters, "ZZ0"); int DB = GetIntParameter(parameters, "DB"); float[] UQ = GetFloatArrayParameter(parameters, "UQ");